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
fiif [ "$?" -ne 0 ] || [ "$action" != "reboot" ]; then [ -x build ] && ./build [ -x install ] && ./install
-- 2.23.0