Merge "Remove quotes from subshell call in bash script"
This commit is contained in:
commit
585d937a3c
@ -97,7 +97,7 @@ function kill_job {
|
|||||||
set +e
|
set +e
|
||||||
# If the job needs killing kill the pid and unlock the file.
|
# If the job needs killing kill the pid and unlock the file.
|
||||||
if [ -f "${LOCKFILE}" ]; then
|
if [ -f "${LOCKFILE}" ]; then
|
||||||
PID="$(cat ${LOCKFILE})"
|
PID=$(cat ${LOCKFILE})
|
||||||
lock_file_remove
|
lock_file_remove
|
||||||
kill -9 "${PID}"
|
kill -9 "${PID}"
|
||||||
fi
|
fi
|
||||||
|
@ -31,7 +31,7 @@ FORKS=${FORKS:-$(grep -c ^processor /proc/cpuinfo)}
|
|||||||
function successerator {
|
function successerator {
|
||||||
set +e
|
set +e
|
||||||
# Get the time that the method was started.
|
# Get the time that the method was started.
|
||||||
OP_START_TIME="$(date +%s)"
|
OP_START_TIME=$(date +%s)
|
||||||
RETRY=0
|
RETRY=0
|
||||||
# Set the initial return value to failure.
|
# Set the initial return value to failure.
|
||||||
false
|
false
|
||||||
|
Loading…
Reference in New Issue
Block a user