1.7.2 Checking all powershell versions (pick first working one), detecting manual switch from a user, better handling of trucky batch characters
Details:
- fixing finding powershell (check for all versions and pick first one which is correct) in case the registry holds only powershell key, but is not valid powershell instance
- Adding a simple manual_switch_detection variable to detect manual switch from user
- make the launcher work better with tricky characters for cmd.exe (|, <, >, &)
#!/bin/bash
set -e
test -f .Xauthority.org && xauth -f .Xauthority.org list | sed -e '/unix/!d' -e "s+.*/unix:+add $(hostname)/unix:+" | xauth 2>/dev/null -
test -z "$1" && exec stx/projects/smalltalk/stx
exec "$@"