about summary refs log tree commit diff stats
path: root/common/files
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 13:25:17 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-02 13:25:17 +0200
commite1f1a5ca1756f6e89bdc8c1bbbd3c13a7e5d7424 (patch)
tree5ebfb608597eecafe73c9a63c3d3e4f3716c30f2 /common/files
parentrefactor(common): Move all data files to `./common/files` (diff)
downloadflake-templates-e1f1a5ca1756f6e89bdc8c1bbbd3c13a7e5d7424.tar.gz
flake-templates-e1f1a5ca1756f6e89bdc8c1bbbd3c13a7e5d7424.zip
fix(common/files/init): hack around nix removing the exec permission bit
Diffstat (limited to 'common/files')
-rwxr-xr-xcommon/files/init6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/files/init b/common/files/init
index 1b7c86b..4f108ef 100755
--- a/common/files/init
+++ b/common/files/init
@@ -81,4 +81,10 @@ while read -r var; do
     fd . --hidden --type file --exec sed --in-place "s|%\bINIT_$var_name\b|$var_value|"
 done < "$replacement_file"
 
+# HACK: Re-add the executable permissions to files, which the nix template has somehow
+# removed <2024-04-02>
+chmod +x scripts/*
+chmod +x update.sh
+[ -f ./build.sh ] && chmod +x build.sh
+
 # vim: ft=sh