Files
SimpleLinux/scripts/funcs.sh
T

15 lines
316 B
Bash

#!/bin/sh
#--- Import colors ---
. ./scripts/colors.sh
#---------------------
#------- Check errors func -----------------
check() {
if [ $1 -ne 0 ]; then
printf "$URED** ERROR: $2\n$RESET"
exit 1
fi
printf "$UGREEN** SUCCESS: $2\n$RESET"
}
#-------------------------------------------