Skip to content

Commit

Permalink
change shebang
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Nov 13, 2024
1 parent 70702af commit 9d4d600
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions bin/pm2
Original file line number Diff line number Diff line change
@@ -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');

0 comments on commit 9d4d600

Please sign in to comment.