Merge pull request #194 from zhangzhishan/master

Fix space problem for getting lock file.
This commit is contained in:
Orsiris de Jong 2020-05-03 09:47:52 +02:00 committed by GitHub
commit 7577f220dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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