未验证 提交 077e42e6 编写于 作者: D digger-yu 提交者: GitHub

Update install.sh (#3270)

Optimization Code
1. Use #!/usr/bin/env bash instead of #!/bin/bash to make the script more portable.
2. Use rm -rf instead of rm -r to remove directories recursively.
Co-authored-by: NLogan Adams <114770087+loadams@users.noreply.github.com>
Co-authored-by: NOlatunji Ruwase <olruwase@microsoft.com>
上级 48297c48
#!/bin/bash
#!/usr/bin/env bash
set -e
err_report() {
......@@ -121,7 +121,7 @@ rm_if_exist() {
if [ -f $1 ]; then
rm $VERBOSE $1
elif [ -d $1 ]; then
rm -r $VERBOSE $1
rm -rf $VERBOSE $1
fi
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册