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