change shebang

This commit is contained in:
Unitech 2024-11-13 15:00:22 +01:00
parent 70702afa1d
commit 9d4d600bfc

12
bin/pm2
View File

@ -1,11 +1,3 @@
#!/bin/sh
#!/usr/bin/env node
SCRIPT_PATH="$(dirname "$0")/../lib/binaries/CLI.js"
# Check if 'bun' is available, otherwise use 'node'
if command -v bun >/dev/null 2>&1
then
bun "$SCRIPT_PATH" "$@"
else
node "$SCRIPT_PATH" "$@"
fi
require('../lib/binaries/CLI.js');