Merge branch 'anntnzrb-format/funcs'

This commit is contained in:
Luke Smith 2022-06-29 16:36:22 -04:00
commit b93f3c96ed

View File

@ -129,10 +129,11 @@ maininstall() {
gitmakeinstall() { gitmakeinstall() {
progname="$(basename "$1" .git)" progname="$(basename "$1" .git)"
dir="$repodir/$progname" dir="$repodir/$progname"
dialog --title "LARBS Installation" --infobox "Installing \`$progname\` ($n of $total) via \`git\` and \`make\`. $(basename "$1") $2" 5 70 dialog --title "LARBS Installation" \
sudo -u "$name" git -C "$repodir/$1" clone --depth 1 --single-branch \ --infobox "Installing \`$progname\` ($n of $total) via \`git\` and \`make\`. $(basename "$1") $2" 5 70
--no-tags -q "$1" "$dir" || sudo -u "$name" git clone -C "$repodir/$1" \
{ cd "$dir" || return 1 ; sudo -u "$name" git pull --force origin master ;} --depth 1 --single-branch --no-tags -q "$1" "$dir" \
|| { cd "$dir" || return 1 ; sudo -u "$name" git pull --force origin master ;}
cd "$dir" || exit 1 cd "$dir" || exit 1
make >/dev/null 2>&1 make >/dev/null 2>&1
make install >/dev/null 2>&1 make install >/dev/null 2>&1