From dd045893421d6f90a1f9cd8223504cc3f89a335b Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sat, 7 Nov 2020 01:41:00 +0800 Subject: [PATCH] [bugfix] installation not working --- ranger/install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ranger/install.sh b/ranger/install.sh index 45fc3d6..acd3c71 100755 --- a/ranger/install.sh +++ b/ranger/install.sh @@ -1,10 +1,10 @@ #!/bin/sh - +set -e DIR=$(readlink -f "$(dirname "$0")") . "$DIR/../env.sh" - install ranger +# install ranger case "$PM" in apt) # atool/p7zip-full for archive previewing/extracting etc @@ -13,8 +13,8 @@ case "$PM" in sudo pip3 install ranger-fm ueberzug ;; pacman) - sudo pacman -S --needed atool - sudo pip install ranger-fm ueberzug p7zip unrar highlight + sudo pacman -S --needed atool p7zip unrar highlight + sudo pip install ranger-fm ueberzug ;; 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" # 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