Skip to content

Commit

Permalink
Keep shellcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Jul 21, 2024
1 parent 40b3151 commit ab9616f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit ab9616f

Please sign in to comment.