larbs

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d1138e55890576c7e459fa86c2fb6b901cb3f241
parent 2db2b6900fe0e216c30b9210708d9127715dfa99
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Mon, 13 Apr 2020 21:19:25 -0400

Merge pull request #205 from jlaw/strip-bare-git

Strip '.git' from working dir when cloning repos
Diffstat:
Mlarbs.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;}