Blueno_Termux/myTermux/.scripts/library/stat.sh
2022-04-01 08:36:29 -04:00

19 lines
342 B
Bash
Executable File

#!/usr/bin/env bash
function stat() {
if [ "${2}" == "Success" ]; then
echo -e "[ ${COLOR_SUCCESS}${1}${COLOR_BASED} ] > ${3}"
elif [ "${2}" == "Warning" ]; then
echo -e "[ ${COLOR_WARNING}${1}${COLOR_BASED} ] > ${3}"
elif [ "${2}" == "Danger" ]; then
echo -e "[ ${COLOR_DANGER}${1}${COLOR_BASED} ] > ${3}"
fi
}