From 3585490f80a25da8006738b128833c8fcaf14f26 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 25 Sep 2018 17:55:58 -0600 Subject: [PATCH] Added formatting variables --- cfddns.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cfddns.sh b/cfddns.sh index 1e53d1d..801a48f 100755 --- a/cfddns.sh +++ b/cfddns.sh @@ -126,6 +126,18 @@ ip4=1 ip6=0 +### define script variables +# timestamp +stamp="${stamp}" +# formatting +normal="\e[0m" +bold="\e[1m" +default="\e[39m" +err="\e[31m" +info="\e[96m" +lit="\e[93m" +note="\e[35m" + ## define error code explainations errorExplain[1]="Missing or invalid parameters on script invocation." errorExplain[2]="curl is required to access CloudFlare API. Please install curl. (apt-get install curl on debian/ubuntu)." @@ -142,7 +154,7 @@ errorExplain[254]="Could not connect with CloudFlare API. Please re-run this scr scriptPath="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" scriptName="$(basename ${0})" logFile="$scriptPath/${scriptName%.*}.log" -stamp="${stamp}" + ### Process script parameters if [ -z $1 ]; then