1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| #!/bin/bash
if [ $# -lt 1 ]; then echo "Usage: $0 [sth] [sth]" fi
if [ $# -eq 2 ] && [ $2 == "debug" ]; then echo "this enter debug mode" DBG_FLAG=1 fi
case $1 in x86) echo "this is case x86" ;; arm32) echo "this is case arm32" ;; arm64) echo "this is case arm64" ;; esac
|