我一直在寻找各地的解释。这是一个从apt-fast.sh脚本中获取的真实示例:
原文链接:https://www.f2er.com/bash/387382.htmlif [ ! -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
“fi”的用法是什么在if块的中间?