[bugfix] suckless installation failed

This commit is contained in:
Klesh Wong 2020-11-09 00:57:55 +08:00
parent 2e7f489ce0
commit 1319ee4e24
4 changed files with 5 additions and 5 deletions

View File

@ -15,5 +15,5 @@ esac
# symlink configuration
lnsf "$DIR/content/dunstrc" "$XDG_CONFIG_HOME/dunst/dunstrc"
sudo cp -f "$DIR/content/dunstctl" "$PREFIX/bin"
sudo chmod +x "$PREFIX/bin/dunstctl"
sudo cp -f "$DIR/content/dunstdaemon" "$PREFIX/bin"
sudo chmod +x "$PREFIX/bin/dunstdaemon"

2
env.sh
View File

@ -36,7 +36,7 @@ in_china () {
lnsf () {
[ "$#" -ne 2 ] && echo "lnsf <target> <symlink>" && return 1
TARGET=$(readlink -f "$1") || echo failed: readlink -f "$1" && return 1
TARGET=$(readlink -f "$1") || (echo failed: readlink -f "$1" ; return 1)
SYMLNK=$2
[ -z "$TARGET" ] && echo "$1 not exists" && return 1
SYMDIR=$(dirname "$SYMLNK")

View File

@ -37,7 +37,7 @@ esac
# use dash as default shell because it much faster and will be used vim-fugitive,
# leads to a much faster responsive speed
sudo /usr/bin/ln -sfT dash /usr/bin/sh
chsh -s /bin/sh
[ "$(awk -F':' '/^'"$USER"'/{print $7}' /etc/passwd)" != "/bin/sh" ] && chsh -s /bin/sh
# symlink config

View File

@ -42,7 +42,7 @@ mkdir -p "$REPOS"
installrepo () {
ODIR=$(pwd)
REPO="$DIR/suckless/repos/$2"
REPO="$DIR/repos/$2"
[ ! -d "$REPO" ] && git clone --depth "$1" "$REPO"
cd "$REPO"
make && sudo make install