Skip to content

Commit

Permalink
Add command-check to get-bdf2u8g.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 24, 2019
1 parent da601d5 commit 7fbf40c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildroot/share/fonts/get-bdf2u8g.sh
Expand Up @@ -12,6 +12,10 @@

HERE=$(pwd)

for CMD in curl unzip patch make; do
which $CMD >/dev/null || { echo "'$CMD' is required for this script." ; exit 1 ; }
done

[[ $HERE =~ 'buildroot/share/fonts'$ ]] || { echo "Change to buildroot/share/fonts to run $(basename $0)" ; exit 1; }

# Download u8glib
Expand Down

0 comments on commit 7fbf40c

Please sign in to comment.