]> git.donarmstrong.com Git - bin.git/commitdiff
handle the fact that mr is now myrepos
authorDon Armstrong <don@donarmstrong.com>
Sat, 2 Apr 2022 21:24:55 +0000 (14:24 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 2 Apr 2022 21:24:55 +0000 (14:24 -0700)
new_home_directory

index 57e71882b52638caa2bb7d460e459a85330704fa..3e492a37c7da0ff6bf9a4fc72a2349f38b44a489 100755 (executable)
@@ -18,9 +18,13 @@ for pkg in mr vcsh; do
         echo "Package $pkg doesn't exist; getting it"
         mkdir -p local_packages/$pkg;
         (cd local_packages/$pkg;
+         deb_name=$pkg
+         if [ $pkg == "mr"; ]; then
+             deb_name=myrepos
+         fi;
          if which apt-get >/dev/null 2>&1; then
-             apt-get download $pkg;
-             dpkg-deb -x $pkg*.deb .
+             apt-get download $deb_name;
+             dpkg-deb -x ${deb_name}*.deb .
          else
              # ok, this host isn't Debian.
              if [ "$pkg" == "mr" ]; then