Skip to content

Commit 4a329c3

Browse files
committed
double quote fix
1 parent 8674b38 commit 4a329c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fullsysbackup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ sleep 1
6464
#if (tar -cf - "${backuppaths[@]}" --exclude="$backuplocation" | pv -s $(du -cb "${backuppaths[@]}" | tail -1 | awk '{print $1}') | gzip --force > archive.tar.gz) 2>&1 | dialog --gauge "Backing up your files..." 7 70; then
6565
#
6666

67-
if tar -cf - "${backuppaths[@]}" --exclude="$backuplocation" | pv -s $(du -cb "${backuppaths[@]}" | tail -1 | awk '{print $1}') | gzip --force > $backuplocation/backup-files-$today.tar.gz ; then
67+
if tar -cf - "${backuppaths[@]}" --exclude="$backuplocation" | pv -s $(du -cb "${backuppaths[@]}" | tail -1 | awk '{print $1}') | gzip --force > $backuplocation/backup-files-"$today".tar.gz ; then
6868
printf "%b" "\e[31mSystem and user files backup: \e[32mdone.\e[0m\n"
6969
else
7070
printf "%b" "\e[31mError: Could not backup files.\e[0m\n" && exit 0

0 commit comments

Comments
 (0)