From 518398d626d8e2a6b65cc8ba408eaf2452b22b2a Mon Sep 17 00:00:00 2001 From: Nex Date: Wed, 17 Apr 2024 16:55:09 +0200 Subject: [PATCH] Add a shebang to the executable script for shell compatibility --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 5c6e1ad..780589c 100644 --- a/install.sh +++ b/install.sh @@ -81,7 +81,8 @@ cp -r build/flat/* "$INSTALL_DIR" || exit # Creating executable info "Creating executable..." -echo "node $INSTALL_DIR/index.js \$@" > $BINARY_PATH || exit +echo "#!/bin/sh" > $BINARY_PATH || exit +echo "node $INSTALL_DIR/index.js \$@" >> $BINARY_PATH || exit chmod +x $BINARY_PATH || exit # Cleaning up