forked from ahurac/dotfiles
Correction : corrections dans le code de headlessvnc
This commit is contained in:
parent
e23d3f951f
commit
6b2ea26b76
1 changed files with 6 additions and 3 deletions
|
@ -13,7 +13,10 @@ echobf() {
|
||||||
|
|
||||||
# Print an error message
|
# Print an error message
|
||||||
print_error() {
|
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
|
# Print an error and exit
|
||||||
|
@ -36,7 +39,7 @@ public_help() {
|
||||||
${name} - Start a VNC server
|
${name} - Start a VNC server
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
${name} $(echo "$verbs" | sed 's/ /|/g')
|
${name} ${verbs// /|}
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,6 +100,6 @@ fi
|
||||||
if echo "$verbs" | grep -q "$arg"; then
|
if echo "$verbs" | grep -q "$arg"; then
|
||||||
"public_${arg}"
|
"public_${arg}"
|
||||||
else
|
else
|
||||||
error_usage
|
error_help
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue