📜  fi bash - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:33.792000             🧑  作者: Mango

代码示例1
if [ ! -x /usr/bin/axel ]
then echo "axel is not installed, perform this?(y/n)"
    read ops
    case $ops in
     y) if apt-get install axel -y --force-yes
           then echo "axel installed"
        else echo "unable to install the axel. you are using sudo?" ; exit
        fi ;;
     n) echo "not possible usage apt-fast" ; exit ;;
    esac
fi