1
0
Fork 0
forked from ahurac/dotfiles

Correction : corrections dans le code de headlessvnc

This commit is contained in:
Hippolyte Chauvin 2023-06-11 13:10:26 +02:00
parent e23d3f951f
commit 6b2ea26b76

View file

@ -13,7 +13,10 @@ echobf() {
# Print an error message
print_error() {
>&2 { printf '\033[1;31m%s\033[0m ' "ERROR:"; echobf "$*" }
(
printf '\033[1;31m%s\033[0m ' "ERROR:"
echobf "$*"
) > /dev/stderr
}
# Print an error and exit
@ -36,7 +39,7 @@ public_help() {
${name} - Start a VNC server
Usage:
${name} $(echo "$verbs" | sed 's/ /|/g')
${name} ${verbs// /|}
EOF
}
@ -97,6 +100,6 @@ fi
if echo "$verbs" | grep -q "$arg"; then
"public_${arg}"
else
error_usage
error_help
fi