[bugfix] installation not working

This commit is contained in:
Klesh Wong 2020-11-07 01:41:00 +08:00
parent 52bd51d7a9
commit dd04589342

View File

@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
set -e
DIR=$(readlink -f "$(dirname "$0")") DIR=$(readlink -f "$(dirname "$0")")
. "$DIR/../env.sh" . "$DIR/../env.sh"
install ranger # install ranger
case "$PM" in case "$PM" in
apt) apt)
# atool/p7zip-full for archive previewing/extracting etc # atool/p7zip-full for archive previewing/extracting etc
@ -13,8 +13,8 @@ case "$PM" in
sudo pip3 install ranger-fm ueberzug sudo pip3 install ranger-fm ueberzug
;; ;;
pacman) pacman)
sudo pacman -S --needed atool sudo pacman -S --needed atool p7zip unrar highlight
sudo pip install ranger-fm ueberzug p7zip unrar highlight sudo pip install ranger-fm ueberzug
;; ;;
esac esac
@ -25,4 +25,5 @@ lnsf "$DIR/config/scope.sh" "$XDG_CONFIG_HOME/ranger/scope.sh"
lnsf "$DIR/config/colorschemes/solarizedmod.py" "$XDG_CONFIG_HOME/ranger/colorschemes/solarizedmod.py" lnsf "$DIR/config/colorschemes/solarizedmod.py" "$XDG_CONFIG_HOME/ranger/colorschemes/solarizedmod.py"
# install devicons # install devicons
git clone --depth 1 https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons [ ! -d ~/.config/ranger/plugins/ranger_devicons ] && \
git clone --depth 1 https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons