瀏覽代碼

Add command-check to get-bdf2u8g.sh

Scott Lahteine 5 年之前
父節點
當前提交
7fbf40c20c
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      buildroot/share/fonts/get-bdf2u8g.sh

+ 4
- 0
buildroot/share/fonts/get-bdf2u8g.sh 查看文件

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

Loading…
取消
儲存