Skip to content

Commit 07c02c4

Browse files
author
MickMake
committed
Update provision
1 parent 2e250c6 commit 07c02c4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

cli/commands/provision

+13-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,21 @@ declare="${BOX_PROJECT_DIR:=}"
1919
declare="${BOX_PROJECT_FILE:=}"
2020
declare="${BOX_RELEASE_JSON:=}"
2121
declare="${BOX_SQL_DIR:=}"
22-
declare="${BOX_RELEASE_DIR:=}"cd
22+
declare="${BOX_RELEASE_DIR:=}"
2323
declare="${BOX_FUNCTIONS_FILE:=}"
2424

25+
if [ -z "${BOX_FUNCTIONS_FILE}" ]
26+
then
27+
echo "BOX_FUNCTIONS_FILE not defined. Exiting."
28+
exit 1
29+
fi
30+
31+
if [ ! -f "${BOX_FUNCTIONS_FILE}" ]
32+
then
33+
echo "$BOX_FUNCTIONS_FILE not found. Exiting."
34+
exit 1
35+
fi
36+
2537
source "${BOX_FUNCTIONS_FILE}"
2638

2739

0 commit comments

Comments
 (0)