diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-04-13 21:19:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-13 21:19:25 -0400 |
commit | d1138e55890576c7e459fa86c2fb6b901cb3f241 (patch) | |
tree | 2987de83d887754bec61966b432d48044433cc96 | |
parent | 2db2b6900fe0e216c30b9210708d9127715dfa99 (diff) | |
parent | 8b9a9652a30358f567cb3ed88653cfc32c3eb4f6 (diff) |
Merge pull request #205 from jlaw/strip-bare-git
Strip '.git' from working dir when cloning repos
-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;} |