=added option to stay around after pwsh

This commit is contained in:
Gal Szkolnik 2021-07-16 08:30:11 -05:00
parent 509e15f8ef
commit 624ca2cc8c
3 changed files with 9 additions and 3 deletions

View File

@ -15,8 +15,10 @@ if [[ "$SZ_SKIP_DEFAULT_SHELL" != "1" ]]; then
echo 'Starting PowerShell SZcripts...' echo 'Starting PowerShell SZcripts...'
echo "pwsh" >> /tmp/default_shell echo "pwsh" >> /tmp/default_shell
pwsh pwsh
if [[ ! -f /tmp/keep_shell_after_pwsh ]]; then
exit exit
fi fi
fi
fi fi
echo "continue" >> /tmp/default_shell echo "continue" >> /tmp/default_shell
export SZ_SKIP_DEFAULT_SHELL=1 export SZ_SKIP_DEFAULT_SHELL=1

View File

@ -15,8 +15,10 @@ if [[ "$SZ_SKIP_DEFAULT_SHELL" != "1" ]]; then
echo 'Starting PowerShell SZcripts...' echo 'Starting PowerShell SZcripts...'
echo "pwsh" >> /tmp/default_shell echo "pwsh" >> /tmp/default_shell
pwsh pwsh
if [[ ! -f /tmp/keep_shell_after_pwsh ]]; then
exit exit
fi fi
fi
fi fi
echo "continue" >> /tmp/default_shell echo "continue" >> /tmp/default_shell
export SZ_SKIP_DEFAULT_SHELL=1 export SZ_SKIP_DEFAULT_SHELL=1

View File

@ -15,8 +15,10 @@ if [[ "$SZ_SKIP_DEFAULT_SHELL" != "1" ]]; then
echo 'Starting PowerShell SZcripts...' echo 'Starting PowerShell SZcripts...'
echo "pwsh" >> /tmp/default_shell echo "pwsh" >> /tmp/default_shell
pwsh pwsh
if [[ ! -f /tmp/keep_shell_after_pwsh ]]; then
exit exit
fi fi
fi
fi fi
echo "continue" >> /tmp/default_shell echo "continue" >> /tmp/default_shell
export SZ_SKIP_DEFAULT_SHELL=1 export SZ_SKIP_DEFAULT_SHELL=1