From 600055c90c2b7557557d1f6818723d39c3db57a6 Mon Sep 17 00:00:00 2001 From: Esteban Carnevale Date: Fri, 7 Nov 2014 13:53:45 -0300 Subject: parabola-mirror-repos: Variable name to lowercase --- parabola-mirror-repos | 6 +++--- 1 file 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 -- cgit v1.2.3