From 244e150d8e2291e0cb0ab12d6dc1c7088a2e374e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Fuhry?= Date: Fri, 7 Apr 2023 00:48:40 +0200 Subject: [PATCH] small fix Moved FINAL_COMMAND to after the after_backup --- update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update b/update index 379f507..1c65044 100644 --- a/update +++ b/update @@ -4,7 +4,7 @@ source "$HOME"/.config/update.conf -VER="2.0.3" +VER="2.0.4" IGREEN="\033[0;92m" # Intense Green IYELLOW="\033[0;93m" # Intense Red NC="\033[0m" # Text Reset @@ -73,7 +73,6 @@ after_backup() { tar -cJf "$TMP"/after-backup_"$DATE".tar.xz.new "$TMP"/after-backup_"$DATE" &> /dev/null cp "$TMP"/after-backup_"$DATE".tar.xz.new "$BACKUP_LOCATION" rename after-backup_"$DATE".tar.xz.new after-backup_"$DATE".tar.xz "$BACKUP_LOCATION"/after-backup_"$DATE".tar.xz.new - $FINAL_COMMAND } update_with_pacman_wrapper() { @@ -123,3 +122,4 @@ while getopts 'fpagr' OPTIONS; do done after_backup && echo -e "${IGREEN}after-backup complete${NC}" +$FINAL_COMMAND; exit 0