linux sh|install script

linux sh installation script 

#!/bin/bash
LANG="zh_CN.UTF-8"
#sudo apt-get autoremove --purge qrencode -y
#sudo apt-get autoremove --purge scrcpy -y
echo "安装Wine,用来运行EXE程"
echo "安装qrencode-用于制作二维码"
echo "安装scrcpy-用于手机和电脑同屏"

if [ ! -f "/bin/qrencode" ] 
then
    sudo apt install qrencode -y 
fi

sleep 1

if [ ! -f "/bin/wine" ] 
then
    sudo apt install wine -y 
fi

sleep 1

if [ ! -f "/bin/scrcpy" ] 
then
    sudo apt install scrcpy -y 
fi

echo "前期准备结束现在脚本工具可以使用了"
echo "5秒后关闭终端"
sleep 5
exit 0

 

Guess you like

Origin blog.csdn.net/lcs910102814/article/details/115006377