Skip to content

Commit d756abf

Browse files
committed
chore: added install notice if docker-compose.yml not exists
1 parent 4fc1ccf commit d756abf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/nge

+7
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,13 @@ if [ $1 == "app_crun" ] || [ $1 == "app_rrun" ] ; then
375375
display_help
376376
fi
377377

378+
# check if docker-compose.yml exists
379+
if [ ! -f "docker-compose.yml" ]; then
380+
echo "docker-compose.yml not found. Have you run ${YELLOW}artisan nge:install${NC}?" >&2
381+
382+
exit 1
383+
fi
384+
378385
if declare -f "$1" > /dev/null ; then
379386
"$@" # call function verbatim
380387
else

0 commit comments

Comments
 (0)