ソースを参照

added option to continue setup even when a command is missing

master
mort 9年前
コミット
2e0195aba9
1個のファイルの変更6行の追加2行の削除
  1. 6
    2
      setup.sh

+ 6
- 2
setup.sh ファイルの表示

{ {
which "$1" 1> /dev/null which "$1" 1> /dev/null
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo "Missing command: ${1}. install it."
exit 1
echo "Warning: Missing command: ${1}. Continue? (y/n)"
read response
if [ "$response" != "y" ]; then
echo "Aborting."
exit 1
fi
fi fi
} }



読み込み中…
キャンセル
保存