diff options
-rwxr-xr-x | parabola-mirror-repos | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parabola-mirror-repos b/parabola-mirror-repos index 3414278..a98fbab 100755 --- a/parabola-mirror-repos +++ b/parabola-mirror-repos @@ -80,9 +80,9 @@ pool_files_to_delete="/tmp/${project}-to-delete-files" # Lock with flock (provided by util-linux), save to log file and send email on exit lockfile="/var/lock/${script_filename}" -LOCKFD=99 +lockfd=99 -_lock() { flock -$1 $LOCKFD; } +_lock() { flock -$1 $lockfd; } # Wait until there is no process writing to ${log_tmp} # Waiting can be necessary if command groups are not executed until the end @@ -135,7 +135,7 @@ _no_more_locking() { rm -f $lockfile } -_prepare_locking() { eval "exec $LOCKFD>\"$lockfile\""; trap _no_more_locking EXIT; } +_prepare_locking() { eval "exec $lockfd>\"$lockfile\""; trap _no_more_locking EXIT; } _prepare_locking |