File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ if which flock 2>&1 >/dev/null; then
103
103
elif which shlock 2>&1 > /dev/null; then
104
104
while true ; do
105
105
trap " rm -f ${ZIP_FILE} .lock" EXIT
106
- if shlock -f " ${ZIP_FILE} .lock" -p " $BASHPID " ; then
106
+ if shlock -f " ${ZIP_FILE} .lock" -p " $$ " ; then
107
107
break
108
108
else
109
109
echo " Could not acquire lock on ${ZIP_FILE} .lock, retrying in 10..." >&2
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ if which flock 2>&1 >/dev/null; then
101
101
elif which shlock 2>&1 > /dev/null; then
102
102
while true ; do
103
103
trap " rm -f ${ZIP_FILE} .lock" EXIT
104
- if shlock -f " ${ZIP_FILE} .lock" -p " $BASHPID " ; then
104
+ if shlock -f " ${ZIP_FILE} .lock" -p " $$ " ; then
105
105
break
106
106
else
107
107
echo " Could not acquire lock on ${ZIP_FILE} .lock, retrying in 10..." >&2
You can’t perform that action at this time.
0 commit comments