diff --git a/bin/robust b/bin/robust index 2fed23e..83e4521 100755 --- a/bin/robust +++ b/bin/robust @@ -140,13 +140,10 @@ do_start() { if [ -n "${WSL_DISTRO_NAME}" ]; then # Warn issue #7 on WSL - https://github.com/lickx/isthmus/issues/7 - VAR_SCREEN="/var/run/screen" - if [ ! -w ${VAR_SCREEN} ]; then - echo "${VAR_SCREEN} should exist and have rwx perms. Try:" - echo " sudo mkdir ${VAR_SCREEN}" - echo " sudo chmod 777 ${VAR_SCREEN}" - echo "Exiting." - exit + if [ ! -w /var/run/screen ]; then + mkdir -p ~/.screen + chmod 700 ~/.screen + export SCREENDIR="$HOME/.screen" fi fi diff --git a/bin/simctl b/bin/simctl index df4b078..7370345 100755 --- a/bin/simctl +++ b/bin/simctl @@ -190,13 +190,10 @@ do_start() { if [ -n "${WSL_DISTRO_NAME}" ]; then # Warn issue #7 on WSL - https://github.com/lickx/isthmus/issues/7 - VAR_SCREEN="/var/run/screen" - if [ ! -w ${VAR_SCREEN} ]; then - echo "${VAR_SCREEN} should exist and have rwx perms. Try:" - echo " sudo mkdir ${VAR_SCREEN}" - echo " sudo chmod 777 ${VAR_SCREEN}" - echo "Exiting." - exit + if [ ! -w /var/run/screen ]; then + mkdir -p ~/.screen + chmod 700 ~/.screen + export SCREENDIR="$HOME/.screen" fi fi