=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,7 +15,9 @@ if [[ "$SZ_SKIP_DEFAULT_SHELL" != "1" ]]; then
echo 'Starting PowerShell SZcripts...'
echo "pwsh" >> /tmp/default_shell
pwsh
exit
if [[ ! -f /tmp/keep_shell_after_pwsh ]]; then
exit
fi
fi
fi
echo "continue" >> /tmp/default_shell

View File

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

View File

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