diff options
author | Esteban Carnevale <alfplayer@mailoo.org> | 2014-11-07 13:53:33 -0300 |
---|---|---|
committer | Esteban Carnevale <alfplayer@mailoo.org> | 2014-11-07 13:53:33 -0300 |
commit | 2fc31398679cb3ec59667b18abfaa856697ef251 (patch) | |
tree | 3582c9e6052f0a6f4f6626b2d3fc6622a5e06e6a | |
parent | 5299548e4dfc8dcb4d7c3173a2c9165968817e3a (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 5edfe9b..3414278 100755 --- a/parabola-mirror-repos +++ b/parabola-mirror-repos @@ -79,7 +79,7 @@ local_pool_files="/tmp/${project}-local-files" 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}" +lockfile="/var/lock/${script_filename}" LOCKFD=99 _lock() { flock -$1 $LOCKFD; } @@ -132,10 +132,10 @@ _no_more_locking() { _lock u _lock xn && \ - rm -f $LOCKFILE + 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 |