From ca2698833209bcc323a3b2956e7b970fdda2c8a0 Mon Sep 17 00:00:00 2001 From: Alexander David Frick Date: Mon, 6 Jun 2022 15:57:25 -0700 Subject: [PATCH] Update check_avx.sh --- check_avx.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/check_avx.sh b/check_avx.sh index f8bf974e..78e57e0d 100644 --- a/check_avx.sh +++ b/check_avx.sh @@ -7,6 +7,14 @@ program="Thorium Browser." # The program we are checking for. YEL='\033[1;33m' # Yellow RED='\033[1;31m' # Red GRE='\033[1;32m' # Green +c0=$'\033[0m' # Reset Text +bold=$'\033[1m' # Bold Text +underline=$'\033[4m' # Underline Text + +# Error handling +yell() { echo "$0: $*" >&2; } +die() { yell "$*"; exit 111; } +try() { "$@" || die "${RED}Failed $*"; } script_name=${0##*/}