Browse Source

Add command-check to get-bdf2u8g.sh

Scott Lahteine 5 years ago
parent
commit
7fbf40c20c
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      buildroot/share/fonts/get-bdf2u8g.sh

+ 4
- 0
buildroot/share/fonts/get-bdf2u8g.sh View File

12
 
12
 
13
 HERE=$(pwd)
13
 HERE=$(pwd)
14
 
14
 
15
+for CMD in curl unzip patch make; do
16
+  which $CMD >/dev/null || { echo "'$CMD' is required for this script." ; exit 1 ; }
17
+done
18
+
15
 [[ $HERE =~ 'buildroot/share/fonts'$ ]] || { echo "Change to buildroot/share/fonts to run $(basename $0)" ; exit 1; }
19
 [[ $HERE =~ 'buildroot/share/fonts'$ ]] || { echo "Change to buildroot/share/fonts to run $(basename $0)" ; exit 1; }
16
 
20
 
17
 # Download u8glib
21
 # Download u8glib

Loading…
Cancel
Save