summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/distcc-tool11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/chroot-tools/distcc-tool b/src/chroot-tools/distcc-tool
index d181109..ba0c9bc 100755
--- a/src/chroot-tools/distcc-tool
+++ b/src/chroot-tools/distcc-tool
@@ -37,20 +37,19 @@ fi
q0="$(printf '%q' "$0")" # quoted $0
panic() {
- echo "$(gettext 'panic: malformed call to internal function')" >&2
+ gettext 'panic: malformed call to internal function' >&2
exit 1
}
error() {
- mesg="$(gettext "$1")"; shift
- printf "$(gettext 'ERROR:') $mesg\n" "$@" >&2
+ local mesg; mesg="$(gettext "$1")"; shift
+ printf -- "$(gettext 'ERROR:') $mesg\n" "$@" >&2
exit 1
}
print() {
- local mesg=$1
- shift
- printf -- "$(gettext "$mesg")\n" "$@"
+ local mesg; mesg="$(gettext "$1")"; shift
+ printf -- "$mesg\n" "$@"
}
usage() {