Commit b9ee2f1c authored by Dylan Araps's avatar Dylan Araps

Error: Use err()

parent d0937a83
...@@ -3261,8 +3261,8 @@ get_full_path() { ...@@ -3261,8 +3261,8 @@ get_full_path() {
[[ -f "${PWD}/${1/*\/}" ]] && { printf "%s\n" "${PWD}/${1/*\/}"; return; } [[ -f "${PWD}/${1/*\/}" ]] && { printf "%s\n" "${PWD}/${1/*\/}"; return; }
if ! cd "${1%/*}"; then if ! cd "${1%/*}"; then
printf "%s\n" "Error: Directory '${1%/*}' doesn't exist or is inaccessible" err "Error: Directory '${1%/*}' doesn't exist or is inaccessible"
printf "%s\n" " Check that the directory exists or try another directory." err " Check that the directory exists or try another directory."
exit 1 exit 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment