diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2019-12-21 14:16:42 -0800 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2019-12-21 14:16:42 -0800 |
commit | f6921a934ab8c2943f8571d453daca0fd735f27b (patch) | |
tree | 093888bcbf50c48cffe134571b736f7cf7b9cdf2 /snapshots-create.sh | |
parent | snapshots-create.sh: improve cleanup code (diff) | |
download | mastermirror-scripts-f6921a934ab8c2943f8571d453daca0fd735f27b.tar.gz mastermirror-scripts-f6921a934ab8c2943f8571d453daca0fd735f27b.tar.bz2 mastermirror-scripts-f6921a934ab8c2943f8571d453daca0fd735f27b.zip |
snapshots-create.sh: fix SC2006
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'snapshots-create.sh')
-rwxr-xr-x | snapshots-create.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/snapshots-create.sh b/snapshots-create.sh index 3a8864b..277db73 100755 --- a/snapshots-create.sh +++ b/snapshots-create.sh @@ -28,9 +28,9 @@ write_time_log "---------------------------------------------------------" write_time_log "START ENTIRE SCRIPT $(date -u)" # used to name the file -DELTA_BASE=`/bin/date -d '-2 day' +%Y%m%d` +DELTA_BASE=$(/bin/date -d '-2 day' +%Y%m%d) DELTA_FILENAME="portage-${DELTA_BASE}.tar.bz2" -YESTERDAY=`/bin/date -d yesterday +%Y%m%d` +YESTERDAY=$(/bin/date -d yesterday +%Y%m%d) FILENAME="portage-${YESTERDAY}.tar.bz2" FILENAME_NEW="gentoo-${YESTERDAY}.tar.xz" |