fixed issue with useless error msg

This commit is contained in:
René Fuhry 2023-03-09 00:16:10 +01:00 committed by GitHub
parent 19299264ab
commit e3d7256771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
update
View File

@ -32,7 +32,7 @@ before_backup() {
OLDEST_FILE="$(ls -t "$BACKUP_LOCATION" | grep before-backup | tail -1)"
rm "$BACKUP_LOCATION"/"$OLDEST_FILE"
fi
rm -r "$TMP"
rm -r "$TMP" &> /dev/null
mkdir "$TMP" && mkdir "$TMP"/before-backup_"$DATE" && mkdir "$TMP"/after-backup_"$DATE"
pacman -Q > "$TMP"/before-backup_"$DATE"/pacman-pre.txt
[[ -f /usr/bin/flatpak ]] && flatpak list > "$TMP"/before-backup_"$DATE"/flatpak-pre.txt