Skip to content

Commit f01a615

Browse files
authored
Merge pull request #155 from bubba/fix-script-double-hie
Fix hie being run if hie-wrapper crashes
2 parents a3a5a66 + 0294892 commit f01a615

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

hie-vscode.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@ export HIE_SERVER_PATH=`which hie`
44
export HIE_WRAPPER_PATH=`which hie-wrapper`
55

66
if [ ! "X" = "X$HIE_WRAPPER_PATH" ]; then
7-
hie-wrapper $@
7+
hie-wrapper $@
88
elif [ "X" = "X$HIE_SERVER_PATH" ]; then
99
echo "Content-Length: 100\r\n\r"
1010
echo '{"jsonrpc":"2.0","id":1,"error":{"code":-32099,"message":"Cannot find hie.exe in the path"}}'
1111
exit 1
12+
else
13+
# Run directly
14+
hie $@
1215
fi
1316

14-
# Run directly
15-
hie $@
16-
#hie --lsp
17-
1817
# Run with a log
1918
# hie --lsp -d -l /tmp/hie.log $@
2019
# hie --lsp -d -l /tmp/hie.log --ekg $@

0 commit comments

Comments
 (0)