macos hotfix

pull/58/head v2.4.7
Simon Let 6 years ago
parent 6be18e7fd3
commit 6afec834d1
  1. 13
      scripts/install.sh
  2. 10
      scripts/util.sh

@ -63,6 +63,19 @@ else
fi
fi
# if setsid --version >/dev/null 2>&1; then
# echo " * Setsid installed: OK"
# else
# echo " * Setsid installed: NOT INSTALLED!"
# # > Install using ...
# fi
# if gnohup --version >/dev/null 2>&1; then
# echo " * Setsid installed: OK"
# else
# echo " * Setsid installed: NOT INSTALLED!"
# # > Install using ...
# fi
# echo
# echo "Continue with installation? (Any key to CONTINUE / Ctrl+C to ABORT)"

@ -43,12 +43,12 @@ __resh_run_daemon() {
if [ -n "${ZSH_VERSION-}" ]; then
setopt LOCAL_OPTIONS NO_NOTIFY NO_MONITOR
fi
# if [ "$(uname)" = Darwin ]; then
# # needs testing
# nohup script -q -c 'resh-daemon' ~/.resh/daemon_last_run_out.txt &
# else
if [ "$(uname)" = Darwin ]; then
# hotfix
gnohup resh-daemon > ~/.resh/daemon_last_run_out.txt 2>&1 & disown
else
setsid resh-daemon > ~/.resh/daemon_last_run_out.txt 2>&1 & disown
#fi
fi
}
__resh_bash_completion_init() {

Loading…
Cancel
Save