From b9ee2f1ce1037989bd8a3319d7ae88e478530fd1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 18 Jan 2017 16:21:43 +1100 Subject: [PATCH] Error: Use err() --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 022530d6..ecd73af6 100755 --- a/neofetch +++ b/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