functions: Fix logs ang arg parser

This commit is contained in:
timoxa0 2024-10-27 16:12:26 +05:00
parent eaa34588e9
commit d3aa97687e

View file

@ -6,13 +6,13 @@ log()
{ {
case "$2" in case "$2" in
error) error)
printf "\e[1m\e[31mERROR:\e[0m \e[1m%s\e[0m\n" "$1";; printf "\e[1m\e[31mERROR:\e[0m \e[1m%s\e[0m\n" "$1">&2;;
internal) internal)
printf "\e[1m\e[96m >>\e[0m \e[1m%s\e[0m\n" "$1";; printf "\e[1m\e[96m >>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
ierror) ierror)
printf "\e[1m\e[31m >>\e[0m \e[1m%s\e[0m\n" "$1";; printf "\e[1m\e[31m >>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
*) *)
printf "\e[1m\e[92m>>>\e[0m \e[1m%s\e[0m\n" "$1";; printf "\e[1m\e[92m>>>\e[0m \e[1m%s\e[0m\n" "$1">&2;;
esac esac
} }
@ -56,7 +56,7 @@ arguments() {
usage ;; usage ;;
*) *)
export LNIBUILD="$1" export LNIBUILD="$opt"
break 2 ;; break 2 ;;
esac esac
done done