Use sh instead of bash.
-#!/usr/bin/env bash
+#!/usr/bin/env sh
# set -o nounset # error when referencing undefined variable
set -o errexit # exit when command fails
@@ -13,8 +13,8 @@ DIR=$(dirname $(realpath $0))
if [[ -n "$LANGUAGECLIENT_DEBUG" ]]; then
~/.cargo/bin/cargo build --manifest-path=$DIR/Cargo.toml
export RUST_LOG=languageclient=info
- $DIR/target/debug/languageclient
+ exec $DIR/target/debug/languageclient
else
export RUST_LOG=languageclient=warn
- $DIR/bin/languageclient
+ exec $DIR/bin/languageclient
fi
