Browse Source

vbuilder.sh.in: modified little

git-svn-id: http://trac.vinelinux.org/repos/projects/vbootstrap/trunk@517 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 14 years ago
parent
commit
919da8021f
1 changed files with 2 additions and 11 deletions
  1. 2 11
      vbuilder.sh.in

+ 2 - 11
vbuilder.sh.in

@@ -139,6 +139,7 @@ check-parameter(){
 	case $1 in
 	    --help)
 		Usage_$LOCALE
+		return 1
 		;;
 	    --version|--arch|--target|--build-rpm|--install-rpm|--remove-rpm)
 		shift
@@ -206,17 +207,7 @@ setup-vbootstrap(){
 	## check a chroot archtecture
 	if [ ! -z ${VARCH} ]; then
 	    case "${VARCH}" in
-		i386)
-		    [ "$(uname -i)" = "ppc" ] && \
-			Msg_NoSupportVARCH_$LOCALE
-		    [ $? -eq 0 ] && exit 1
-		    ;;
-		i686)
-		    [ "$(uname -i)" = "ppc" ] && \
-			Msg_NoSupportVARCH_$LOCALE
-		    [ $? -eq 0 ] && exit 1
-		    ;;
-		x86_64)
+		i386|i686|x86_64)
 		    [ "$(uname -i)" = "ppc" ] && \
 			Msg_NoSupportVARCH_$LOCALE
 		    [ $? -eq 0 ] && exit 1