summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:53:33 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:53:33 -0300
commit2fc31398679cb3ec59667b18abfaa856697ef251 (patch)
tree3582c9e6052f0a6f4f6626b2d3fc6622a5e06e6a
parent5299548e4dfc8dcb4d7c3173a2c9165968817e3a (diff)
parabola-mirror-repos: Variable name to lowercase
-rwxr-xr-xparabola-mirror-repos6
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