Skip to content
Snippets Groups Projects
Verified Commit 128a1ad0 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

FIX: fix installer

parent 45c38dd5
No related branches found
No related tags found
1 merge request!9FIX: fix installer
Pipeline #55839 passed
......@@ -5,17 +5,16 @@ dir_name="temp_dir"
default_api_url="https://gitlab.indiscale.com/fdo/fdo-manager-service/-/raw/main/api/src/main/resources/api.yaml"
# Check openapi-python-client and install if necessary
if [ "$(which openapi-python-client)" == "" ]
then
if [ -z "$(which openapi-python-client)" ]; then
echo 'openapi-python-client not found, installing'
pip install openapi-python-client
fi
# Create temporary folder
if [[ -d "$dir_name" ]]
if [ -d "$dir_name" ]
then
echo 'Temporary folder already exists, aborting.'
exit
exit 0
else
echo 'creating temporary folder'
mkdir $dir_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment