Small fix to make febootstrap work on Debian.
[febootstrap.git] / febootstrap.sh
index 7398516..654d51f 100755 (executable)
@@ -82,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
@@ -117,7 +117,7 @@ fi
 
 # Add the updates repository if asked.
 case "$updates" in
-    none|no)
+    ""|none|no)
        ;;
     *://*)
        cat >> $tmpdir/febootstrap.repo <<EOF