1 2 3 4 5
if [ -d app ];then echo true else echo false fi
1 2
# 简洁 [ -f hello.txt ] && echo yes || echo no