summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpublic/thesiah-debian.sh14
-rwxr-xr-xstatic/thesiah-debian.sh14
2 files changed, 16 insertions, 12 deletions
diff --git a/public/thesiah-debian.sh b/public/thesiah-debian.sh
index 461f053..9b96052 100755
--- a/public/thesiah-debian.sh
+++ b/public/thesiah-debian.sh
@@ -96,10 +96,12 @@ maininstall() {
}
putgitrepo() {
- whiptail --infobox "Downloading and installing config files..." 7 60
- [ -z "$3" ] && branch="main" || branch="$3"
- dir=$(mktemp -d)
- [ ! -d "$2" ] && mkdir -p "$2"
+ # Downloads a gitrepo $1 and places the files in $2 only overwriting conflicts
+ whiptail --infobox "Downloading and installing config files..." 7 60
+ [ -z "$3" ] && branch="master" || branch="$repobranch"
+ dir=$(mktemp -d)
+ [ ! -d "$2" ] && mkdir -p "$2"
+ chown "$name":sudo "$dir" "$2"
sudo -u "$name" git -C "$repodir" clone --depth 1 \
--single-branch --no-tags -q --recursive -b "$branch" \
--recurse-submodules "$1" "$dir"
@@ -113,10 +115,10 @@ gitmakeinstall() {
whiptail --title "SI Installation" \
--infobox "Installing \`$progname\` ($n of $total) via \`git\` and \`make\`. $(basename "$1") $2" 8 70
sudo -u "$name" git -C "$repodir" clone --depth 1 --single-branch \
- --no-tags -q "$1" "$dir" ||
+ --no-tags -q "$1" "$dir" >/dev/null 2>&1 ||
{
cd "$dir" || return 1
- sudo -u "$name" git pull --force origin master
+ sudo -u "$name" git pull --force origin master >/dev/null 2>&1
}
# Check the repository name and act accordingly for suckless
case "$progname" in
diff --git a/static/thesiah-debian.sh b/static/thesiah-debian.sh
index 461f053..9b96052 100755
--- a/static/thesiah-debian.sh
+++ b/static/thesiah-debian.sh
@@ -96,10 +96,12 @@ maininstall() {
}
putgitrepo() {
- whiptail --infobox "Downloading and installing config files..." 7 60
- [ -z "$3" ] && branch="main" || branch="$3"
- dir=$(mktemp -d)
- [ ! -d "$2" ] && mkdir -p "$2"
+ # Downloads a gitrepo $1 and places the files in $2 only overwriting conflicts
+ whiptail --infobox "Downloading and installing config files..." 7 60
+ [ -z "$3" ] && branch="master" || branch="$repobranch"
+ dir=$(mktemp -d)
+ [ ! -d "$2" ] && mkdir -p "$2"
+ chown "$name":sudo "$dir" "$2"
sudo -u "$name" git -C "$repodir" clone --depth 1 \
--single-branch --no-tags -q --recursive -b "$branch" \
--recurse-submodules "$1" "$dir"
@@ -113,10 +115,10 @@ gitmakeinstall() {
whiptail --title "SI Installation" \
--infobox "Installing \`$progname\` ($n of $total) via \`git\` and \`make\`. $(basename "$1") $2" 8 70
sudo -u "$name" git -C "$repodir" clone --depth 1 --single-branch \
- --no-tags -q "$1" "$dir" ||
+ --no-tags -q "$1" "$dir" >/dev/null 2>&1 ||
{
cd "$dir" || return 1
- sudo -u "$name" git pull --force origin master
+ sudo -u "$name" git pull --force origin master >/dev/null 2>&1
}
# Check the repository name and act accordingly for suckless
case "$progname" in