From 42b8a93292a649fdaae6d5d8bb7c5fb96e6dcb09 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Fri, 3 Feb 2017 09:41:31 -0600 Subject: [PATCH] warn if pacman was not found to be running --- scripts/snap-pac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/snap-pac b/scripts/snap-pac index d2f4283..d7b060e 100755 --- a/scripts/snap-pac +++ b/scripts/snap-pac @@ -108,6 +108,7 @@ declare pacman_cmd pacman_cmd="$(sed 's./usr/bin/pacman.pacman.g' <(ps -C pacman -o args=))" if [[ -z "$pacman_cmd" ]]; then + printf "%b Didn't find pacman running.\n" "$WARNINGMSG" pacman_cmd="pacman" fi @@ -150,7 +151,7 @@ for CONFIG in $SNAPPER_CONFIGS; do rm "$prefile" else printf "N/A\n" - printf " %b %s does not exist, so no post snapshot for %s will be taken. If you are initially installing snap-pac, this is normal.\n" "$WARNINGMSG" "$prefile" "$CONFIG" + printf "%b %s does not exist, so no post snapshot for %s will be taken. If you are initially installing snap-pac, this is normal.\n" "$WARNINGMSG" "$prefile" "$CONFIG" fi fi