摘要: #!/bin/bash directory="/path/to/directory" if [ $(ls -A $directory) ]; then echo "有文件" # 执行指定shell脚本 sh /path/to/script.sh else echo "没有文件" fi #!/bin/ 阅读全文
posted @ 2023-02-23 16:36 启豪 阅读(440) 评论(0) 推荐(0) 编辑