Skip to content

Commit fc9d622

Browse files
author
Chris Wiechmann
committed
Update entrypoint.sh
1 parent c1ec5d1 commit fc9d622

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ printenv
99
$CLI
1010

1111
# Import all users
12-
if [ ${INPUT_USERDIRECTORY} != "" ];then
12+
if ! [ -z ${INPUT_USERDIRECTORY} ];then
1313
echo "Importing users from directory: '${INPUT_USERDIRECTORY}'"
1414
cd ${INPUT_USERDIRECTORY} || exit 99;
1515
for userDirectory in `find . -mindepth 1 -type d`
@@ -20,7 +20,7 @@ if [ ${INPUT_USERDIRECTORY} != "" ];then
2020
fi
2121

2222
# Import all organizations
23-
if [ ${INPUT_ORGDIRECTORY} != "" ];then
23+
if ! [ -z ${INPUT_ORGDIRECTORY} ];then
2424
echo "Importing organizations from directory: '${INPUT_ORGDIRECTORY}'"
2525
cd ${INPUT_ORGDIRECTORY} || exit 99;
2626
for orgDirectory in `find . -mindepth 1 -type d`
@@ -31,7 +31,7 @@ if [ ${INPUT_ORGDIRECTORY} != "" ];then
3131
fi
3232

3333
# Import all applications
34-
if [ ${INPUT_APPDIRECTORY} != "" ];then
34+
if ! [ -z ${INPUT_APPDIRECTORY} ];then
3535
echo "Importing applications from directory: '${INPUT_APPDIRECTORY}'"
3636
cd ${INPUT_APPDIRECTORY} || exit 99;
3737
for appDirectory in `find . -mindepth 1 -type d`
@@ -42,7 +42,7 @@ if [ ${INPUT_APPDIRECTORY} != "" ];then
4242
fi
4343

4444
# Import all APIs
45-
if [ ${INPUT_APIDIRECTORY} != "" ];then
45+
if ! [ -z ${INPUT_APIDIRECTORY} ];then
4646
echo "Importing APIs from directory: '${INPUT_APIDIRECTORY}'"
4747
cd ${INPUT_APIDIRECTORY} || exit 99;
4848
for apiDirectory in `find . -mindepth 1 -type d`

0 commit comments

Comments
 (0)