Error: Use err()
This commit is contained in:
parent
d0937a8367
commit
b9ee2f1ce1
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue