use modern '--help' & '--version' output
[util-vserver.git] / util-vserver / scripts / vapt-get
index 36f8a4a..b4c0b5d 100755 (executable)
@@ -24,27 +24,25 @@ test -e "$UTIL_VSERVER_VARS" || {
 . "$UTIL_VSERVER_VARS"
 . "$_LIB_FUNCTIONS"
 
+
 function showHelp()
 {
-    cat <<EOF
-Usage: $0 <vserver-name>* [--all] -- <params>+
-
-Report bugs to <$PACKAGE_BUGREPORT>.
-EOF
+    echo \
+$"Usage: $0 <vserver-name>* [--all] -- <params>+
 
+Report bugs to <$PACKAGE_BUGREPORT>."
     exit $1
 }
 
 function showVersion()
 {
-    cat <<EOF 
-vapt-get $PACKAGE_VERSION -- apt-get for vservers
+    echo \
+$"vapt-get $PACKAGE_VERSION -- apt-get for vservers
 This program is part of $PACKAGE_STRING
 
 Copyright (C) 2003 Enrico Scholz
 This program is free software; you may redistribute it under the terms of
-the GNU General Public License.  This program has absolutely no warranty.
-EOF
+the GNU General Public License.  This program has absolutely no warranty."
     exit $1
 }
 
@@ -73,7 +71,6 @@ cnt=0
 res=255
 for i in "${vservers[@]}"; do
     cnt=$[ cnt + 1 ]
-    _APT_GET=apt-get \
     "$_NEW_NAMESPACE" "$_VAPT_GET_WORKER" "$i" "$@"
     res=$?
 done