Skip to content
Snippets Groups Projects
Commit b5daf8b6 authored by Weilbyte's avatar Weilbyte Committed by GitHub
Browse files

Status command uses silent mode exit codes at all times.

Fixes #91
parent e3255e86
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ function usage { ...@@ -89,7 +89,7 @@ function usage {
echo -e " -h --help Show this help" echo -e " -h --help Show this help"
echo -e " -s --silent Silent mode\n" echo -e " -s --silent Silent mode\n"
echo -e "Commands:" 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 " install Install the theme"
echo -e " uninstall Uninstall the theme" echo -e " uninstall Uninstall the theme"
echo -e " update Update the theme (runs uninstall, then install)" echo -e " update Update the theme (runs uninstall, then install)"
...@@ -115,10 +115,8 @@ function status { ...@@ -115,10 +115,8 @@ function status {
echo -e "PVE" echo -e "PVE"
echo -e " Version: $PVEVersion (major $PVEVersionMajor)\n" echo -e " Version: $PVEVersion (major $PVEVersionMajor)\n"
echo -e "Utility hash: $(sha256sum $SCRIPTPATH 2>/dev/null || echo N/A)" 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 fi
if isInstalled; then exit 0; else exit 1; fi
} }
function install { function install {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment