better message

This commit is contained in:
Tobias Powalowski 2024-08-13 19:40:54 +02:00
parent 707e94936f
commit 7e711098f2

View file

@ -39,7 +39,7 @@ while [ $# -gt 0 ]; do
_TARGET_DIR="${1}"
;;
-g) shift
[[ -d "${1}" ]] && _abort "Invalid image path -- ${1} is a directory!"
[[ -d "${1}" ]] && _abort "Invalid image path -- ${1} is a existing directory!"
if ! _GENERATE_IMAGE="$(readlink -f "${1}")" || [[ ! -e "${_GENERATE_IMAGE%/*}" ]]; then
_abort "Unable to write to path!" "${1}"
fi