Add a shebang to the executable script for shell compatibility

This commit is contained in:
Nex 2024-04-17 16:55:09 +02:00
parent c43554597f
commit 518398d626
No known key found for this signature in database
GPG Key ID: 9F163F2B0EE4B626

View File

@ -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