Added functions.sh containing copyable blocks

This commit is contained in:
Gero Müller 2020-10-15 13:02:23 +02:00
parent 4e8b8ca99e
commit 6e283057cb
1 changed files with 12 additions and 0 deletions

12
functionst.sh Normal file
View File

@ -0,0 +1,12 @@
# Begin Output Function--------------------------------------------------------------------------------------------------------------
if [ -t 1 ] ; then
RST='\033[0m'; BLD='\033[1m'; LGT='\033[2';
RED='\033[31m'; GRN='\033[32m'; YLO='\033[33m'; BLU='\033[34m'; PRP='\033[35m'; CYN='\033[36m'; LGR='\033[37m'
else
RST=''; BLD=''; RED=''; GRN=''; YLO=''; BLU=''; PRP=''; CYN=''; LGR=''
fi
msg() { echo -e $BLD$BLU"::"$RST $BLD$*$RST; }
error() { echo -e $RED"::"$RST $BLD$*$RST; }
warn() { echo -e $YLO"::"$RST $BLD$*$RST; }
success() { echo -e $GRN"::"$RST $BLD$*$RST; }
# End Output Functions -------------------------------------------------------------------------------------------------------------