File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,19 +7,18 @@ APP_NAME="@@APPNAME@@"
77QUALITY=" @@QUALITY@@"
88NAME=" @@NAME@@"
99
10- set -e
11-
1210if grep -qi Microsoft /proc/version; then
1311 # in a wsl shell
1412 WIN_CODE_CMD=$( wslpath -w " $( dirname " $( realpath " $0 " ) " ) /$APP_NAME .cmd" )
15-
16- WSL_EXT_ID=" ms-vscode.remote-wsl"
17- WSL_EXT_WLOC=$( cmd.exe /c " $WIN_CODE_CMD " --locate-extension $WSL_EXT_ID )
18- if ! [ -z " $WSL_EXT_WLOC " ]; then
19- # replace \r\n with \n in WSL_EXT_WLOC, get linux path for
20- WSL_CODE=$( wslpath -u " ${WSL_EXT_WLOC%% [[:cntrl:]]} " ) /scripts/wslCode.sh
21- $WSL_CODE $COMMIT $QUALITY " $WIN_CODE_CMD " " $APP_NAME " " $@ "
22- exit $?
13+ if ! [ -z " $WIN_CODE_CMD " ]; then
14+ WSL_EXT_ID=" ms-vscode.remote-wsl"
15+ WSL_EXT_WLOC=$( cmd.exe /c " $WIN_CODE_CMD " --locate-extension $WSL_EXT_ID )
16+ if ! [ -z " $WSL_EXT_WLOC " ]; then
17+ # replace \r\n with \n in WSL_EXT_WLOC, get linux path for
18+ WSL_CODE=$( wslpath -u " ${WSL_EXT_WLOC%% [[:cntrl:]]} " ) /scripts/wslCode.sh
19+ $WSL_CODE $COMMIT $QUALITY " $WIN_CODE_CMD " " $APP_NAME " " $@ "
20+ exit $?
21+ fi
2322 fi
2423fi
2524
You can’t perform that action at this time.
0 commit comments