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
2020fi
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
3131fi
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
4242fi
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;
4848for apiDirectory in ` find . -mindepth 1 -type d`
0 commit comments