add error display function
This commit is contained in:
parent
394487fadb
commit
34d57d4553
@ -8,6 +8,14 @@
|
|||||||
# https://git.asifbacchus.app/ab-docker/scripts/LICENSE
|
# https://git.asifbacchus.app/ab-docker/scripts/LICENSE
|
||||||
#
|
#
|
||||||
|
|
||||||
|
### functions
|
||||||
|
|
||||||
|
consoleError() {
|
||||||
|
printf "\n%s%s%s\n\n" "$err" "$2" "$norm"
|
||||||
|
exit "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
### text formatting presets
|
### text formatting presets
|
||||||
if command -v tput > /dev/null; then
|
if command -v tput > /dev/null; then
|
||||||
cyan=$(tput setaf 6)
|
cyan=$(tput setaf 6)
|
||||||
|
Loading…
Reference in New Issue
Block a user