Skip to content

Commit

Permalink
resolved oracle config file generator issue
Browse files Browse the repository at this point in the history
  • Loading branch information
asifbasha61 committed Jul 12, 2023
1 parent 27f0d5d commit 9104d84
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions shell_scripts/oracle_storage_config_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ do
echo -e "\e[0;36m${bold}Hint: Enter the oracle Name space ${normal}"
echo -e "\e[0;38m${bold}please enter the oracle name space ${normal}"
read name_space
printf "oracle_namespace: $name_space\n" >> config_files/oracle_storage_config.yml
break;
if [[ -z $name_space ]]; then
echo -e "\e[0;31m${bold}Error - Entered value is empty. please enter the Oracle name space${normal}"; fail=1
else
printf "oracle_namespace: $name_space\n" >> config_files/oracle_storage_config.yml
break;
fi
done

}
Expand All @@ -19,8 +23,12 @@ do
echo -e "\e[0;36m${bold}Hint: Enter oracle bucket_name ${normal}"
echo -e "\e[0;38m${bold}please enter the oracle storage bucket name ${normal}"
read bucket_name
printf "oracle_bucket: $bucket_name\n" >> config_files/oracle_storage_config.yml
break;
if [[ -z $bucket_name ]]; then
echo -e "\e[0;31m${bold}Error - Entered value is empty. please enter the Oracle bucket name${normal}"; fail=1
else
printf "oracle_bucket: $bucket_name\n" >> config_files/oracle_storage_config.yml
break;
fi
done

}
Expand Down

0 comments on commit 9104d84

Please sign in to comment.