diff --git a/transfer.sh b/transfer.sh index 28ad357..9a1f82c 100755 --- a/transfer.sh +++ b/transfer.sh @@ -17,7 +17,7 @@ function main() { local LIN_DIR="/mnt/linux" local WIN_DIR="/mnt/windows" - [[ -d "/opt/os-transfer" ]] && cd "/opt/os-transfer" + cd "/opt/os-transfer" || { echo "Cannot cd to /opt/os-transfer"; exit; } local SPACE_PROJECT_MAP="./space-project-map" [[ -f "$SPACE_PROJECT_MAP" ]] || \