添加远程执行快捷参数

This commit is contained in:
2019-08-25 23:46:35 +08:00
parent 533f74e116
commit 5c2bc0824f
2 changed files with 38 additions and 17 deletions

View File

@ -152,16 +152,22 @@ SOFTWARE.
"
echo "What do you want to do?"
select var in "Install (I accept the MIT License.)" "Uninstall" "Exit"; do
break;
done
echo "You have selected $var."
if [[ $var == "Install (I accept the MIT License.)" ]]; then
if [[ "$1" == "--install" ]]; then
Install
elif [[ $var == "Uninstall" ]]; then
elif [[ "$1" == "--uninstall" ]]; then
Uninstall
else
exit 0
echo "What do you want to do?"
select var in "Install (I accept the MIT License.)" "Uninstall" "Exit"; do
break;
done
echo "You have selected $var."
if [[ $var == "Install (I accept the MIT License.)" ]]; then
Install
elif [[ $var == "Uninstall" ]]; then
Uninstall
else
exit 0
fi
fi