From e3537fab433e743c105ad82554a28d4892c8f4ec Mon Sep 17 00:00:00 2001 From: James Barnett Date: Tue, 14 Feb 2017 09:45:31 -0600 Subject: [PATCH] put rm file in correct spot --- scripts/snap-pac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/snap-pac b/scripts/snap-pac index 19a2fd8..2ae0af4 100755 --- a/scripts/snap-pac +++ b/scripts/snap-pac @@ -93,10 +93,10 @@ for CONFIG in $SNAPPER_CONFIGS; do post) if [[ -f $prefile ]]; then printf "$($snapper_cmd --description "$(truncate_description $PACMAN_POST_DESCRIPTION)" --pre-number "$(< "$prefile")")\n" + rm -f "$prefile" else warning "%s does not exist, so no post snapshot for %s will be taken. If you are initially installing $name, this is normal." "$prefile" "$CONFIG" fi - rm -f "$prefile" ;; esac