瀏覽代碼

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 查看文件

@@ -4,8 +4,12 @@ check_exists()
{
which "$1" 1> /dev/null
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
}


Loading…
取消
儲存