diff options
author | Jackson Law <178053+jlaw@users.noreply.github.com> | 2020-04-04 18:12:53 -0700 |
---|---|---|
committer | Jackson Law <178053+jlaw@users.noreply.github.com> | 2020-04-11 00:38:01 -0700 |
commit | 8b9a9652a30358f567cb3ed88653cfc32c3eb4f6 (patch) | |
tree | 2987de83d887754bec61966b432d48044433cc96 /larbs.sh | |
parent | 2db2b6900fe0e216c30b9210708d9127715dfa99 (diff) |
Strip '.git' from working dir when cloning repos
Diffstat (limited to 'larbs.sh')
-rw-r--r-- | larbs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;} |