diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-12-17 19:11:34 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-12-20 13:35:19 +0000 |
commit | 958224ea625bc78d51cdebc0a6a8e88a184a0fd1 (patch) | |
tree | cb78dec1e12d33f4104cc74f8bd69a8558adc6f4 | |
parent | 9b694744eaa2bbf2ee967adb94b972187cdc61ad (diff) |
contrib/obs-mirror: log DRY var in rm script
Related: SYS#5764
Change-Id: I705e52030d538e6d86c72f2bccb0eb97e6dab1de
-rwxr-xr-x | contrib/obs-mirror/rm-old-nightly-archives.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/obs-mirror/rm-old-nightly-archives.sh b/contrib/obs-mirror/rm-old-nightly-archives.sh index e28bce1..485bf01 100755 --- a/contrib/obs-mirror/rm-old-nightly-archives.sh +++ b/contrib/obs-mirror/rm-old-nightly-archives.sh @@ -8,7 +8,7 @@ DRY=0 # Get removal date in seconds since epoch and display it DATE_RM_SEC=$(expr $(date +%s) - 3600 \* 24 \* 32) DATE_RM_STR=$(date -d "@$DATE_RM_SEC" +"%Y-%m-%d") -echo "Removing nightly archives from $DATE_RM_STR and older" +echo "Removing nightly archives from $DATE_RM_STR and older (DRY=$DRY)" cd /downloads/obs-mirror |