diff options
-rwxr-xr-x | locale-gen | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,14 +44,14 @@ show_usage() { For more info, see the ${HILITE}locale-gen${NORMAL}(1) and ${HILITE}locale.gen${NORMAL}(8) manpages. EOF - [[ -z $@ ]] && exit 0 + [[ $# -eq 0 ]] && exit 0 echo "" eerror "Unknown option '$1'" exit 1 } show_version() { local b="(" a=")" - local cvsver="$Revision: 1.33 $b $Date: 2013/07/01 00:32:15 $a" + local cvsver="$Revision: 1.34 $b $Date: 2014/06/13 22:03:23 $a" echo "locale-gen-${cvsver//: }" exit 0 } @@ -71,7 +71,7 @@ JOBS_MAX=1 QUIET=0 SET_X="" LOCALE_ARCHIVE=true -while [[ -n $1 ]] ; do +while [[ $# -gt 0 ]] ; do case $1 in -k|--keep|--keep-existing) KEEP=$1;; -d|--destdir) shift; DESTDIR=$1; unset ROOT;; |