summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrunjobsparallel.in4
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}]=$!