[bugfix] installation failed

This commit is contained in:
Klesh Wong 2020-11-10 01:54:42 +08:00
parent fa4f4cc0b0
commit 94314a4ac2

View File

@ -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