From ab9616fbc7e7198c0d00fdbd2d717838e3bf46ba Mon Sep 17 00:00:00 2001 From: Stuart Hayhurst Date: Mon, 22 Jul 2024 00:28:07 +0100 Subject: [PATCH] Keep shellcheck happy --- install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index aaed083..2e60dec 100755 --- a/install.sh +++ b/install.sh @@ -207,8 +207,7 @@ installCore() { #Decide if the assets have been cached output "success" "Generating $3..." "noNewline" if [[ ! -d "./build/$1/${2}px" ]]; then - message=$(./icon_builder.py "--custom" "$1" "$2" "build" "$iconType" 2>&1 >/dev/null) - if [[ "$?" != "0" ]]; then + if ! message=$(./icon_builder.py "--custom" "$1" "$2" "build" "$iconType" 2>&1 >/dev/null); then output "error" " failed" else output "success" " done" @@ -391,8 +390,7 @@ previewTheme() { installCore output "success" "Installed to $installDir" - grub2-theme-preview "$installDir" - if [[ "$?" != "0" ]]; then + if ! grub2-theme-preview "$installDir"; then output "error" "Failed to display preview, grub2-theme-preview may be broken" fi rm -rf "$installDir"