mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 22:13:48 -05:00
move colors to _setColors_()
This commit is contained in:
@@ -35,6 +35,8 @@ setup() {
|
||||
FORCE=false
|
||||
DRYRUN=false
|
||||
|
||||
_setColors_ # Set Color Constants
|
||||
|
||||
set -o errtrace
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
@@ -20,6 +20,7 @@ fi
|
||||
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
_setColors_ #Set color constants
|
||||
else
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
|
||||
@@ -20,6 +20,7 @@ fi
|
||||
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
_setColors_ #Set color constants
|
||||
else
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
@@ -43,6 +44,7 @@ setup() {
|
||||
VERBOSE=false
|
||||
FORCE=false
|
||||
DRYRUN=false
|
||||
|
||||
set -o errtrace
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
@@ -20,6 +20,7 @@ fi
|
||||
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
_setColors_ #Set color constants
|
||||
else
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
|
||||
@@ -19,18 +19,19 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -f "${BASEHELPERS}" >&2; then
|
||||
source "${BASEHELPERS}"
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
_setColors_ #Set color constants
|
||||
else
|
||||
echo "Sourcefile not found: ${BASEHELPERS}" >&2
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
if test -f "${BASEHELPERS}" >&2; then
|
||||
source "${BASEHELPERS}"
|
||||
else
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
echo "Sourcefile not found: ${BASEHELPERS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -19,18 +19,19 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -f "${BASEHELPERS}" >&2; then
|
||||
source "${BASEHELPERS}"
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
_setColors_ #Set color constants
|
||||
else
|
||||
echo "Sourcefile not found: ${BASEHELPERS}" >&2
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
if test -f "${BASEHELPERS}" >&2; then
|
||||
source "${BASEHELPERS}"
|
||||
else
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
echo "Sourcefile not found: ${BASEHELPERS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -19,18 +19,19 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -f "${BASEHELPERS}" >&2; then
|
||||
source "${BASEHELPERS}"
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
_setColors_ #Set color constants
|
||||
else
|
||||
echo "Sourcefile not found: ${BASEHELPERS}" >&2
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -f "${ALERTS}" >&2; then
|
||||
source "${ALERTS}"
|
||||
if test -f "${BASEHELPERS}" >&2; then
|
||||
source "${BASEHELPERS}"
|
||||
else
|
||||
echo "Sourcefile not found: ${ALERTS}" >&2
|
||||
echo "Sourcefile not found: ${BASEHELPERS}" >&2
|
||||
printf "Can not run tests.\n" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user