summaryrefslogtreecommitdiff
path: root/parabola-mirror-repos
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:53:01 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2014-11-07 13:53:01 -0300
commit5299548e4dfc8dcb4d7c3173a2c9165968817e3a (patch)
tree68d49687a65053476661f692486f187f27ff1e68 /parabola-mirror-repos
parent2cbb33e7e4cecb4b1eea9e04816c0a66530b0745 (diff)
parabola-mirror-repos: Variable name to lowercase
Diffstat (limited to 'parabola-mirror-repos')
-rwxr-xr-xparabola-mirror-repos10
1 files changed, 5 insertions, 5 deletions
diff --git a/parabola-mirror-repos b/parabola-mirror-repos
index 27e4bc3..5edfe9b 100755
--- a/parabola-mirror-repos
+++ b/parabola-mirror-repos
@@ -145,8 +145,8 @@ if ! _lock xn ; then
exit 1
fi
-DATE="$(date +%Y.%m.%d)"
-current="${local_dir}-${DATE}"
+date="$(date +%Y.%m.%d)"
+current="${local_dir}-${date}"
current_component="${current##*/}"
for (( link_dest_count=1 ; link_dest_count <= ${link_dest_snapshot_count} ; link_dest_count++ )) ; do
date_count="$(date -d @$(( $(date +"%s") - ${link_dest_count} * 86400)) +"%Y.%m.%d")"
@@ -171,8 +171,8 @@ error() {
{
if [[ ${date_exclude} && ${forcerun} != 1 ]] ; then
- if [[ $DATE == ${date_exclude} ]] ; then
- echo "Manually disabled: ${DATE}. Exiting."
+ if [[ $date == ${date_exclude} ]] ; then
+ echo "Manually disabled: ${date}. Exiting."
exit 0
fi
fi
@@ -272,7 +272,7 @@ else
fi
echo
-echo "=> Creating snapshot for date ${DATE}"
+echo "=> Creating snapshot for date ${date}"
# Change to the temporary directory
cd "${local_dir}".tmp