about summary refs log tree commit diff
path: root/mkrootfs.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@voidlinux.eu>2015-05-20 19:18:05 +0200
committerJuan RP <xtraeme@voidlinux.eu>2015-05-20 19:18:05 +0200
commitfc31e013a33b010654c6fbab8fdc3e39674f8cf7 (patch)
treed8a2e3967b1be047d0d809f1dd3ebd780e67bc76 /mkrootfs.sh.in
parentd177ef47d6649eec42ff3106e9cbf78b95565f6d (diff)
downloadhrmpf-fc31e013a33b010654c6fbab8fdc3e39674f8cf7.tar.gz
hrmpf-fc31e013a33b010654c6fbab8fdc3e39674f8cf7.tar.xz
hrmpf-fc31e013a33b010654c6fbab8fdc3e39674f8cf7.zip
mkrootfs: fix -r order.
Diffstat (limited to 'mkrootfs.sh.in')
-rw-r--r--mkrootfs.sh.in4
1 files changed, 2 insertions, 2 deletions
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!"