summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Law <178053+jlaw@users.noreply.github.com>2020-04-04 18:12:53 -0700
committerJackson Law <178053+jlaw@users.noreply.github.com>2020-04-11 00:38:01 -0700
commit8b9a9652a30358f567cb3ed88653cfc32c3eb4f6 (patch)
tree2987de83d887754bec61966b432d48044433cc96
parent2db2b6900fe0e216c30b9210708d9127715dfa99 (diff)
Strip '.git' from working dir when cloning repos
-rw-r--r--larbs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/larbs.sh b/larbs.sh
index c7fbcbd..eb97f32 100644
--- a/larbs.sh
+++ b/larbs.sh
@@ -101,7 +101,7 @@ maininstall() { # Installs all needed programs from main repo.
}
gitmakeinstall() {
- progname="$(basename "$1")"
+ progname="$(basename "$1" .git)"
dir="$repodir/$progname"
dialog --title "LARBS Installation" --infobox "Installing \`$progname\` ($n of $total) via \`git\` and \`make\`. $(basename "$1") $2" 5 70
sudo -u "$name" git clone --depth 1 "$1" "$dir" >/dev/null 2>&1 || { cd "$dir" || return ; sudo -u "$name" git pull --force origin master;}