Bash CD || KELUAR

cd "$foo" || { echo "Error xyz"; exit 1; }
AttractivePenguin