Merge pull request #205 from jlaw/strip-bare-git
Strip '.git' from working dir when cloning repos
This commit is contained in:
commit
d1138e5589
1 changed files with 1 additions and 1 deletions
2
larbs.sh
2
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;}
|
||||
|
|
Loading…
Reference in a new issue