fixed wrong status icons

This commit is contained in:
Armin Briegel
2022-08-02 16:51:56 +02:00
parent a308ccbc29
commit 719ca81bcb
4 changed files with 51 additions and 37 deletions
+14
View File
@@ -7,6 +7,20 @@ if ! is-at-least 10.14 $installedOSversion; then
exit 98
fi
# check Swift Dialog presence and version
DIALOG_CMD="/usr/local/bin/dialog"
if [[ -x $DIALOG_CMD ]]; then
# Swift Dialog is not installed, clear cmd file variable to ignore
DIALOG_CMD_FILE=""
fi
if ! is-at-least 1.11.2 "$(/usr/local/bindialog --version)"; then
# list item progress is only available with SD 1.11.2 and higher
DIALOG_LIST_ITEM_NAME=""
fi
# MARK: argument parsing
if [[ $# -eq 0 ]]; then
if [[ -z $label ]]; then # check if label is set inside script