From b5daf8b6005ab7af5c2321c0c12e0e0efaea5b9b Mon Sep 17 00:00:00 2001 From: Weilbyte Date: Tue, 12 Oct 2021 23:57:24 +0000 Subject: [PATCH] Status command uses silent mode exit codes at all times. Fixes #91 --- PVEDiscordDark.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PVEDiscordDark.sh b/PVEDiscordDark.sh index 95e4fbb..b4702d8 100644 --- a/PVEDiscordDark.sh +++ b/PVEDiscordDark.sh @@ -89,7 +89,7 @@ function usage { echo -e " -h --help Show this help" echo -e " -s --silent Silent mode\n" echo -e "Commands:" - echo -e " status Check current theme status (in silent mode, returns 0 if installed, and 1 if not installed)" + echo -e " status Check current theme status (returns 0 if installed, and 1 if not installed)" echo -e " install Install the theme" echo -e " uninstall Uninstall the theme" echo -e " update Update the theme (runs uninstall, then install)" @@ -115,10 +115,8 @@ function status { echo -e "PVE" echo -e " Version: $PVEVersion (major $PVEVersionMajor)\n" echo -e "Utility hash: $(sha256sum $SCRIPTPATH 2>/dev/null || echo N/A)" - exit 0 - else - if isInstalled; then exit 0; else exit 1; fi fi + if isInstalled; then exit 0; else exit 1; fi } function install {