functions: Fix logs ang arg parser
This commit is contained in:
parent
eaa34588e9
commit
d3aa97687e
|
@ -6,13 +6,13 @@ log()
|
|||
{
|
||||
case "$2" in
|
||||
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)
|
||||
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)
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ arguments() {
|
|||
usage ;;
|
||||
|
||||
*)
|
||||
export LNIBUILD="$1"
|
||||
export LNIBUILD="$opt"
|
||||
break 2 ;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue