You can derive an appropriately slashed WIN_HOME variable as follows:
WIN_HOME=${USERPROFILE//\\/\/}
WIN_HOME=/${WIN_HOME/:/}
$ echo $WIN_HOME
/C/Users/langdonx
Or even use $LOCALAPPDATA to go straight to the app data directory without hard-coding that.
sudo would be the only other hurdle there. If the instructions said to run the script with sudo, would the script itself need to sudo the commands inside?
You can derive an appropriately slashed WIN_HOME variable as follows:
Or even use $LOCALAPPDATA to go straight to the app data directory without hard-coding that.
sudowould be the only other hurdle there. If the instructions said to run the script with sudo, would the script itself need to sudo the commands inside?