Bash – “fi”的用法是什么?
发布时间:2020-12-15 19:07:18 所属栏目:安全 来源:网络整理
导读:我一直在寻找各地的解释。这是一个从apt-fast.sh脚本中获取的真实示例: 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" el
我一直在寻找各地的解释。这是一个从apt-fast.sh脚本中获取的真实示例:
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 “fi”的用法是什么在if块的中间?
fi关闭if语句,while ;;关闭case语句中的当前条目。
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- scala – 从build.sbt读取application.conf
- 如何排查Redis的延迟问题
- 如何在使用Scalaz Futures和定时功能时正确退出程序
- 使用gSOAP与WebService - 第二部分 开发第一个WebService客
- 这个“简单”ScalaZ教程代码示例中的隐式解析序列是什么?
- bash – 在ksh上推送/弹出?
- 单元测试 – “元素(选择器,标签).query(fn)”方法如何在An
- yum安装时提示No package xxx available,解决办法
- 在Angular2 rc4中为输入类型=日期使用自定义ControlValueAc
- Angularjs 环境下Ztree结合JqueryUI实现拖拽