mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +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; }
|
||||
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user