Skip to content

Commit 5e53197

Browse files
committed
Add guarde.
1 parent 566f8e5 commit 5e53197

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

scripts/start_forever.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111

1212
# Back to root directory.
13-
cd ..
13+
if ! [[ -n "$TRAVIS" ]]; then
14+
cd ..
15+
fi
1416

1517
# Run the server.
1618
forever start main.js -o log.txt

scripts/stop_forever.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111

1212
# Back to root directory.
13-
cd ..
13+
if ! [[ -n "$TRAVIS" ]]; then
14+
cd ..
15+
fi
1416

1517
# Stop the server.
1618
forever stop main.js

0 commit comments

Comments
 (0)