diff --git a/bin/pm2 b/bin/pm2 index f96b8525..08899d3c 100755 --- a/bin/pm2 +++ b/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');