Sinnvoller $* zu verwenden

This commit is contained in:
qbi 2021-06-13 15:31:06 +02:00
parent 0fbd1ae469
commit d6275a4698

View file

@ -125,7 +125,7 @@ print_failed() {
printf " Failed\n"
fi
fi
if [ -n "$@" ]; then
if [ -n "$*" ]; then
print_error "$@"
fi
}
@ -145,9 +145,9 @@ print_info() {
if [ "$VERBOSITY" -eq 1 ]; then
if [ "$COLORED_OUTPUT" -eq 1 ]; then
echo "${GREEN}[+]$NORMAL $@"
echo "${GREEN}[+]$NORMAL $*"
else
echo "[-] $@"
echo "[-] $*"
fi
fi
}
@ -156,9 +156,9 @@ print_warn() {
if [ "$VERBOSITY" -eq 1 ]; then
if [ "$COLORED_OUTPUT" -eq 1 ]; then
echo "${YELLOW}[-]$NORMAL $@" 1>&2
echo "${YELLOW}[-]$NORMAL $*" 1>&2
else
echo "[-] $@" 1>&2
echo "[-] $*" 1>&2
fi
fi
}
@ -166,9 +166,9 @@ print_warn() {
print_error() {
if [ "$COLORED_OUTPUT" -eq 1 ]; then
echo "${RED}[-]$NORMAL Error: $@" 1>&2
echo "${RED}[-]$NORMAL Error: $*" 1>&2
else
echo "[-] Error: $@" 1>&2
echo "[-] Error: $*" 1>&2
fi
}