X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=febootstrap.sh;h=6b46ed4cdeae682a9ed859e7630f9ceb67e1dc64;hb=e0948419331d56c8f95fdeba2bca12ed5b5f1270;hp=fc819fe82c2e8f7e9524d012d7769896a564ed16;hpb=efd83597d9107b725e1b31a88540ff3a5e52ec41;p=febootstrap.git diff --git a/febootstrap.sh b/febootstrap.sh index fc819fe..6b46ed4 100755 --- a/febootstrap.sh +++ b/febootstrap.sh @@ -18,6 +18,8 @@ # # Written by Richard W.M. Jones +unset CDPATH + TEMP=`getopt \ -o g:i:p:u: \ --long groupinstall:,group-install:,help,install:,noclean,no-clean,proxy:,updates: \ @@ -45,7 +47,7 @@ while true; do -i|--install) packages[i++]="$2" shift 2;; - --groupinstall|--group-install) + -g|--groupinstall|--group-install) packages[i++]="@$2" shift 2;; -p|--proxy) @@ -80,7 +82,7 @@ mirror="$3" # Architecture is currently always the same as the current arch. We # cannot do --foreign builds. See discussion in the manpage. -arch=$(arch) +arch=$(uname -m) case $arch in i?86) arch=i386 ;; esac @@ -115,7 +117,7 @@ fi # Add the updates repository if asked. case "$updates" in - none|no) + ""|none|no) ;; *://*) cat >> $tmpdir/febootstrap.repo <> $tmpdir/febootstrap.repo <