Add command-check to get-bdf2u8g.sh

2.0.x
Scott Lahteine 5 years ago
parent da601d5114
commit 7fbf40c20c

@ -12,6 +12,10 @@
HERE=$(pwd) 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; } [[ $HERE =~ 'buildroot/share/fonts'$ ]] || { echo "Change to buildroot/share/fonts to run $(basename $0)" ; exit 1; }
# Download u8glib # Download u8glib

Loading…
Cancel
Save