From 69f4d8fd74e57b8d4927496615df38ff34e7695b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 16 May 2021 20:42:58 +0200 Subject: runjobsparallel.in: even morequotes --- runjobsparallel.in | 4 ++-- 1 file 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}]=$! -- cgit v1.2.3-70-g09d2