Fix space problem for getting lock file.

pull/194/head
Zhang Zhishan 4 years ago committed by Zhishan Zhang
parent 5881c71212
commit acf388bc7b

@ -3024,7 +3024,7 @@ function _HandleLocksLocal {
# Skip the whole part if overwrite true
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
lockfileContent="$(head -c16384 $lockfile)"
lockfileContent="$(head -c16384 "$lockfile")"
Logger "Master lock pid present: $lockfileContent" "DEBUG"
lockPid="${lockfileContent%@*}"
if [ $(IsInteger $lockPid) -ne 1 ]; then

@ -450,7 +450,7 @@ function _HandleLocksLocal {
# Skip the whole part if overwrite true
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
lockfileContent="$(head -c16384 $lockfile)"
lockfileContent="$(head -c16384 "$lockfile")"
Logger "Master lock pid present: $lockfileContent" "DEBUG"
lockPid="${lockfileContent%@*}"
if [ $(IsInteger $lockPid) -ne 1 ]; then

@ -2859,7 +2859,7 @@ function _HandleLocksLocal {
# Skip the whole part if overwrite true
if [ -s "$lockfile" ] && [ $overwrite != true ]; then
lockfileContent="$(head -c16384 $lockfile)"
lockfileContent="$(head -c16384 "$lockfile")"
Logger "Master lock pid present: $lockfileContent" "DEBUG"
lockPid="${lockfileContent%@*}"
if [ $(IsInteger $lockPid) -ne 1 ]; then

Loading…
Cancel
Save