pull/58/head v2.3.1
Simon Let 6 years ago
parent 4b5913f611
commit c547110d3f
  1. 7
      scripts/install.sh
  2. 1
      scripts/rawinstall.sh

@ -76,9 +76,9 @@ else
fi fi
fi fi
echo echo
echo "INSTALLATION" echo "Creating directories ..."
exit 0
# INSTALLATION # INSTALLATION
mkdir_if_not_exists() { mkdir_if_not_exists() {
@ -115,6 +115,7 @@ cp -fr data/sanitizer ~/.resh/sanitizer_data
# backward compatibility: We have a new location for resh history file # backward compatibility: We have a new location for resh history file
[ ! -f ~/.resh/history.json ] || mv ~/.resh/history.json ~/.resh_history.json [ ! -f ~/.resh/history.json ] || mv ~/.resh/history.json ~/.resh_history.json
echo "Finishing up ..."
# Adding resh shellrc to .bashrc ... # Adding resh shellrc to .bashrc ...
grep -q '[[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc' ~/.bashrc ||\ grep -q '[[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc' ~/.bashrc ||\
echo -e '\n[[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc' >> ~/.bashrc echo -e '\n[[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc' >> ~/.bashrc
@ -143,7 +144,7 @@ nohup resh-daemon &>/dev/null & disown
# Generating resh-uuid ... # Generating resh-uuid ...
[ -e "$(HOME)/.resh/resh-uuid" ] \ [ -e "$(HOME)/.resh/resh-uuid" ] \
|| cat /proc/sys/kernel/random/uuid > "$(HOME)/.resh/resh-uuid" 2>/dev/null \ || cat /proc/sys/kernel/random/uuid > "$(HOME)/.resh/resh-uuid" 2>/dev/null \
|| ./uuid.sh > "$(HOME)/.resh/resh-uuid" 2>/dev/null || scripts/uuid.sh > "$(HOME)/.resh/resh-uuid" 2>/dev/null
echo "\ echo "\

@ -2,6 +2,7 @@
set -euo pipefail set -euo pipefail
echo
echo "Please report any issues you encounter to: https://github.com/curusarn/resh/issues" echo "Please report any issues you encounter to: https://github.com/curusarn/resh/issues"
echo echo

Loading…
Cancel
Save