diff options
author | Esteban Carnevale <alfplayer@mailoo.org> | 2014-11-07 13:53:45 -0300 |
---|---|---|
committer | Esteban Carnevale <alfplayer@mailoo.org> | 2014-11-07 13:53:45 -0300 |
commit | 600055c90c2b7557557d1f6818723d39c3db57a6 (patch) | |
tree | 38667793e948cbf71cd6e978ec9eff07bf3787de | |
parent | 2fc31398679cb3ec59667b18abfaa856697ef251 (diff) |
parabola-mirror-repos: Variable name to lowercase
-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 |