Error: Use err()

This commit is contained in:
Dylan Araps 2017-01-18 16:21:43 +11:00
parent d0937a8367
commit b9ee2f1ce1
1 changed files with 2 additions and 2 deletions

View File

@ -3261,8 +3261,8 @@ get_full_path() {
[[ -f "${PWD}/${1/*\/}" ]] && { printf "%s\n" "${PWD}/${1/*\/}"; return; }
if ! cd "${1%/*}"; then
printf "%s\n" "Error: Directory '${1%/*}' doesn't exist or is inaccessible"
printf "%s\n" " Check that the directory exists or try another directory."
err "Error: Directory '${1%/*}' doesn't exist or is inaccessible"
err " Check that the directory exists or try another directory."
exit 1
fi