This commit is contained in:
wt
2026-03-06 11:38:35 +07:00
parent 81ffa09e4e
commit 29247e48b6
20 changed files with 56 additions and 17 deletions
+7 -3
View File
@@ -7,10 +7,10 @@
#------- Check errors func -----------------
check() {
if [ $1 -ne 0 ]; then
printf "$ON_RED** ERROR: $2\n$RESET"
print_err "** ERROR: $2"
exit 1
fi
printf "$ON_GREEN** SUCCESS: $2\n$RESET"
print_info "** SUCCESS: $2"
}
#-------------------------------------------
@@ -24,5 +24,9 @@ check_root() {
#-------------------------------------------
print_info() {
printf "$ON_GREEN$1$RESET\n"
printf "\033[30;42m$1$RESET\n"
}
print_err() {
printf "$ON_RED$1$RESET\n"
}