
11 Jan
2021
11 Jan
'21
9:35 a.m.
cd $SCRIPT_DIR => cd "$SCRIPT_DIR"
Then it'll show error if $SCRIPT_DIR is empty, instead of silently cd into $HOME.
ok, got it Thanks, Yinsi
Thanks, Chenglong
[ "$container_name" == 'ssh-r' ] && exit docker images | grep -wq "$container_name" - if [ "$?" == 0 ] && [ "$action" != "reboot" ]; then + if [ "$?" -ne 0 ] || [ "$action" != "reboot" ]; then [ -x build ] && ./build [ -x install ] && ./install fi -- 2.23.0