diff --git a/sh/sync.sh b/sh/sync.sh index 057d7ad..ff0df57 100755 --- a/sh/sync.sh +++ b/sh/sync.sh @@ -559,7 +559,7 @@ _process_arguments() { case "${Aseen}" in *"|:_//_:|${INPUT}|:_//_:|"*) continue ;; *) Aseen="${Aseen}|:_//_:|${INPUT}|:_//_:|" ;; - esac && { ! [ -d "${INPUT}" ] && printf "\nError: Invalid Input ( %s ), no such directory.\n" "${INPUT}" && continue; }; do + esac && [ -d "${INPUT}" ] || { printf "\nError: Invalid Input ( %s ), no such directory.\n" "${INPUT}" && continue; }; do current_folder_process_arguments="$(pwd)" FOLDER="$(cd "${INPUT}" && pwd)" || exit 1 GDRIVE_FOLDER="${GDRIVE_FOLDER:-${ROOT_FOLDER_NAME:-Unknown}}"