Skip to content

Commit

Permalink
more checkups
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Oct 17, 2024
1 parent e4d264c commit 7fc9df1
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
12 changes: 10 additions & 2 deletions bin/pm2
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env node
#!/bin/bash

require('../lib/binaries/CLI.js');
SCRIPT_PATH="$(dirname "$0")/../lib/binaries/CLI.js"

# Check if 'bun' is available, otherwise use 'node'
if command -v bun &> /dev/null
then
bun "$SCRIPT_PATH" "$@"
else
node "$SCRIPT_PATH" "$@"
fi
12 changes: 10 additions & 2 deletions bin/pm2-dev
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env node
#!/bin/bash

require('../lib/binaries/DevCLI.js');
SCRIPT_PATH="$(dirname "$0")/../lib/binaries/DevCLI.js"

# Check if 'bun' is available, otherwise use 'node'
if command -v bun &> /dev/null
then
bun "$SCRIPT_PATH" "$@"
else
node "$SCRIPT_PATH" "$@"
fi
12 changes: 10 additions & 2 deletions bin/pm2-docker
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env node
#!/bin/bash

require('../lib/binaries/Runtime4Docker.js');
SCRIPT_PATH="$(dirname "$0")/../lib/binaries/Runtime4Docker.js"

# Check if 'bun' is available, otherwise use 'node'
if command -v bun &> /dev/null
then
bun "$SCRIPT_PATH" "$@"
else
node "$SCRIPT_PATH" "$@"
fi
12 changes: 10 additions & 2 deletions bin/pm2-runtime
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/usr/bin/env node
#!/bin/bash

require('../lib/binaries/Runtime4Docker.js');
SCRIPT_PATH="$(dirname "$0")/../lib/binaries/Runtime4Docker.js"

# Check if 'bun' is available, otherwise use 'node'
if command -v bun &> /dev/null
then
bun "$SCRIPT_PATH" "$@"
else
node "$SCRIPT_PATH" "$@"
fi

0 comments on commit 7fc9df1

Please sign in to comment.