diff --git a/pckcfg.sh b/pckcfg.sh index 3dafb6e..d0642cc 100755 --- a/pckcfg.sh +++ b/pckcfg.sh @@ -1,7 +1,10 @@ #!/bin/sh # Should be run by go generate. DO NOT run it directly. -files=($(find $@ | grep -v .DS_Store | sort)) +files=() +while IFS= read -r line; do + files+=("$line") +done <<< "$(find "$@" | grep -v .DS_Store | sort)" rm -rf cfg.zip zip -9 cfg.zip "${files[@]}"