Skip to content

Commit

Permalink
Output icon builder errors after completion
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Jul 21, 2024
1 parent 1464222 commit 40b3151
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,17 @@ installCore() {
#Decide if the assets have been cached
output "success" "Generating $3..." "noNewline"
if [[ ! -d "./build/$1/${2}px" ]]; then
./icon_builder.py "--custom" "$1" "$2" "build" "$iconType" >/dev/null
message=$(./icon_builder.py "--custom" "$1" "$2" "build" "$iconType" 2>&1 >/dev/null)
if [[ "$?" != "0" ]]; then
output "error" " failed"
else
output "success" " done"
fi

#Send any error output
if [[ "$message" != "" ]]; then
echo "$message"
fi
else
output "success" " found cached $3"
fi
Expand Down

0 comments on commit 40b3151

Please sign in to comment.