diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-12-17 19:11:34 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2021-12-17 19:11:34 +0100 |
commit | f7ae778fa2543996922e6bad2e939df57e5c514d (patch) | |
tree | 59579f10543b18b1ce1fd0cd9174a4c9e520302d /contrib/obs-mirror/rm-old-nightly-archives.sh | |
parent | 37ab6b50785630a8132de575c452cf90bb218a22 (diff) |
contrib/obs-mirror: log DRY var in rm scriptosmith/obs-mirror
Related: SYS#5764
Change-Id: I705e52030d538e6d86c72f2bccb0eb97e6dab1de
Diffstat (limited to 'contrib/obs-mirror/rm-old-nightly-archives.sh')
-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 |