From fc31e013a33b010654c6fbab8fdc3e39674f8cf7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 20 May 2015 19:18:05 +0200 Subject: mkrootfs: fix -r order. --- mkrootfs.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mkrootfs.sh.in') diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index c112790..afcd749 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -101,7 +101,6 @@ register_binfmt() { esac } -: ${XBPS_REPOSITORY:=--repository=http://repo.voidlinux.eu/current} : ${XBPS_CACHEDIR:=--cachedir=/var/cache/xbps} : ${PKGBASE:=base-system} # @@ -114,7 +113,7 @@ while getopts "b:C:c:hp:r:V" opt; do c) XBPS_CACHEDIR="--cachedir=$OPTARG";; h) usage; exit 0;; p) EXTRA_PKGS="$OPTARG";; - r) XBPS_REPOSITORY="--repository=$OPTARG $XBPS_REPOSITORY";; + r) XBPS_REPOSITORY="$XBPS_REPOSITORY --repository=$OPTARG";; V) echo "$PROGNAME @@MKLIVE_VERSION@@"; exit 0;; esac done @@ -122,6 +121,7 @@ shift $(($OPTIND - 1)) PLATFORM="$1" SUBPLATFORM=$PLATFORM +: ${XBPS_REPOSITORY:=--repository=http://repo.voidlinux.eu/current} if [ -z "$PLATFORM" ]; then echo "$PROGNAME: platform was not set!" -- cgit 1.4.1