From 406d6145cc5fea7b3810a011504167b5f3e9e432 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 28 Oct 2019 18:28:32 +0400 Subject: [PATCH] Minor cleanup of scripts --- create.sh | 23 ----------------------- progressBars.sh | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/create.sh b/create.sh index 46f88fd..5434253 100755 --- a/create.sh +++ b/create.sh @@ -1,20 +1,5 @@ #!/bin/bash -# Variables -_ENDW=197 -_ENDWT=394 -_ENDB=591 -_ENDBT=788 -_END=788 - -RED="\033[0;31m" -ORANGE="\033[0;33m" -YELLOW="\033[1;33m" -GREEN="\033[0;32m" -BLUE="\033[0;34m" -PURPLE="\033[0;35m" -COLORLESS="\033[0m" - source progressBars.sh source buildFunctions.sh @@ -31,14 +16,6 @@ themeWhiteTiny="Posy White Tiny" sourceBlackTiny=$PWD/BlackTiny themeBlackTiny="Posy Black Tiny" -RED="\033[0;31m" -ORANGE="\033[0;33m" -YELLOW="\033[1;33m" -GREEN="\033[0;32m" -BLUE="\033[0;34m" -PURPLE="\033[0;35m" -COLORLESS="\033[0m" - echo -e "${RED}Gener${COLORLESS}${ORANGE}ating${COLORLESS} ${YELLOW}cur${COLORLESS}${GREEN}sor${COLORLESS} ${BLUE}the${COLORLESS}${PURPLE}mes.${COLORLESS}" buildWhite diff --git a/progressBars.sh b/progressBars.sh index 970a3f3..771df1b 100644 --- a/progressBars.sh +++ b/progressBars.sh @@ -1,5 +1,20 @@ #!/bin/bash +# Variables +_ENDW=197 +_ENDWT=394 +_ENDB=591 +_ENDBT=788 +_END=788 + +RED="\033[0;31m" +ORANGE="\033[0;33m" +YELLOW="\033[1;33m" +GREEN="\033[0;32m" +BLUE="\033[0;34m" +PURPLE="\033[0;35m" +COLORLESS="\033[0m" + function ProgressBar_RED { # Process data let _progress_R=(${1}*100/${2}*100)/100