summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgohan.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/gohan.sh b/gohan.sh
index 3ede237..db9bfec 100755
--- a/gohan.sh
+++ b/gohan.sh
@@ -150,12 +150,12 @@ install_from_aur() {
install_from_github() {
progname="$(basename "$1" .git)"
- repodir="/home/$name/.local/src"
+ repodir="/usr/local/src"
dir="$repodir/$progname"
printf "Installing \`$progname\` ($n of $total) via \`git\` and \`make\`. $(basename "$1") $2\n"
- sudo -u "$name" git clone "$1" "$dir" >/dev/null 2>&1
+ git clone "$1" "$dir" >/dev/null 2>&1
cd "$dir" || exit
- sudo -u "$name" make clean install >/dev/null 2>&1
+ make clean install >/dev/null 2>&1
}
### THE ACTUAL SCRIPT ###