From 94314a4ac2425ae3cb33d45da9e901d844fb3871 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Tue, 10 Nov 2020 01:54:42 +0800 Subject: [PATCH] [bugfix] installation failed --- suckless/install.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/suckless/install.sh b/suckless/install.sh index 67f6a98..44ff34e 100755 --- a/suckless/install.sh +++ b/suckless/install.sh @@ -37,16 +37,11 @@ case "$PM" in esac # clone / compile utilities and dwm itself -REPOS="$DIR/suckless/repos" -mkdir -p "$REPOS" installrepo () { - ODIR=$(pwd) - REPO="$DIR/repos/$2" - [ ! -d "$REPO" ] && git clone --depth "$1" "$REPO" - cd "$REPO" + intorepo "$1" "$DIR/repos/$2" make && sudo make install - cd "$ODIR" + exitrepo } installrepo https://gitee.com/klesh/st.git st