diff options
author | Erich Eckner <git@eckner.net> | 2021-05-16 20:42:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-05-16 20:42:58 +0200 |
commit | 69f4d8fd74e57b8d4927496615df38ff34e7695b (patch) | |
tree | 732da3d60e2d90f454936554c120aa0bd58d072c | |
parent | f95a4c28cc9909b271084fa209d4d3bdf373b333 (diff) | |
download | runjobsparallel-69f4d8fd74e57b8d4927496615df38ff34e7695b.tar.xz |
runjobsparallel.in: even morequotes
-rwxr-xr-x | runjobsparallel.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runjobsparallel.in b/runjobsparallel.in index e567d20..e0a29eb 100755 --- a/runjobsparallel.in +++ b/runjobsparallel.in @@ -17,11 +17,11 @@ cd "$1" || exit 1 tmpDir=$(mktemp -d #TMPDIR#/runjobsparallel.XXXXXX) for file in ./*; do - if [ -f $file ] && [ -x $file ]; then + if [ -f "${file}" ] && [ -x "${file}" ]; then i=${#errFiles[@]} errFiles[${i}]="${tmpDir}/err.${i}" ( - nice -n 19 $file + nice -n 19 "${file}" echo $? > "${errFiles[${i}]}" )& pids[${i}]=$! |