From 2f335c3c2e3799b5a8499f9de235a57cf60c4194 Mon Sep 17 00:00:00 2001 From: anntnzrb Date: Tue, 24 Aug 2021 09:39:23 -0500 Subject: [PATCH] Log errors to stderr --- larbs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/larbs.sh b/larbs.sh index 410b748..663cd83 100644 --- a/larbs.sh +++ b/larbs.sh @@ -23,7 +23,7 @@ esac done installpkg(){ pacman --noconfirm --needed -S "$1" >/dev/null 2>&1 ;} -error() { echo "ERROR: $1" ; exit 1;} +error() { printf "%s\n" "$1" >&2; exit 1; } welcomemsg() { \ dialog --title "Welcome!" --msgbox "Welcome to Luke's Auto-Rice Bootstrapping Script!\\n\\nThis script will automatically install a fully-featured Linux desktop, which I use as my main machine.\\n\\n-Luke" 10 60