nixos/munin: scripts need to be executable in order to build a wrapper

"Builder called die: Cannot wrap
/nix/store/XXX-munin-available-plugins/plugin.sh because it is not an
executable file"

[Bjørn: Keep DRY, quote "$file".]
This commit is contained in:
Jean-Pierre PRUNARET 2017-08-12 22:04:00 +02:00 committed by Bjørn Forsman
parent 059d722e5c
commit e6157451c1

View File

@ -26,7 +26,9 @@ let
for file in $out/*; do
case "$file" in
plugin.sh) continue;;
*/plugin.sh|*/plugins.history)
chmod +x "$file"
continue;;
esac
# read magic makers from the file