No env bash
This commit is contained in:
parent
39d1de1c9d
commit
3a5cef10ed
1 changed files with 4 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
#!/bin/bash
|
||||
|
||||
export IP=$( hostname -i )
|
||||
|
||||
|
@ -9,13 +9,10 @@ if [[ ! -d "node_modules" ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if [[ -z "$@" ]]
|
||||
then
|
||||
if [[ -f "package.json" ]]
|
||||
then
|
||||
if [[ -z "$@" ]]; then
|
||||
if [[ -f "package.json" ]]; then
|
||||
PACKAGE_JSON_START=$( cat package.json | jq -r '.scripts.start // empty' )
|
||||
if [[ -z "$PACKAGE_JSON_START" ]]
|
||||
then
|
||||
if [[ -z "$PACKAGE_JSON_START" ]]; then
|
||||
echo "package.json found, but no start script, starting bash..."
|
||||
exec bash
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue