mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Error: Use err()
This commit is contained in:
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user