mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
change shebang
This commit is contained in:
parent
70702afa1d
commit
9d4d600bfc
12
bin/pm2
12
bin/pm2
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user