Skip to content

Commit f5e1b00

Browse files
committed
nit: replace return with exit
1 parent 35dbae1 commit f5e1b00

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

templates/create_cloud_conf.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
echo "Error: No clouds.yaml provided"
3939
echo "You must provide a valid clouds.yaml script to generate a cloud.conf"
4040
echo ""
41-
return 1
41+
exit 1
4242
fi
4343

4444
# Check if os cloud is provided
@@ -48,14 +48,14 @@ else
4848
echo "Error: No cloud specified"
4949
echo "You must specify which cloud you want to use."
5050
echo ""
51-
return 1
51+
exit 1
5252
fi
5353

5454
CAPO_YQ_TYPE=$(file "$(which yq)")
5555
if [[ ${CAPO_YQ_TYPE} == *"Python script"* ]]; then
5656
echo "Wrong version of 'yq' installed, please install the one from https://github.com/mikefarah/yq"
5757
echo ""
58-
return 1
58+
exit 1
5959
fi
6060

6161
CAPO_CLOUDS_PATH=${CAPO_CLOUDS_PATH:-""}

templates/env.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ else
3838
echo "Error: No clouds.yaml provided"
3939
echo "You must provide a valid clouds.yaml script to generate a cloud.conf"
4040
echo ""
41-
return 1
41+
exit 1
4242
fi
4343

4444
# Check if os cloud is provided
@@ -48,14 +48,14 @@ else
4848
echo "Error: No cloud specified"
4949
echo "You must specify which cloud you want to use."
5050
echo ""
51-
return 1
51+
exit 1
5252
fi
5353

5454
CAPO_YQ_TYPE=$(file "$(which yq)")
5555
if [[ ${CAPO_YQ_TYPE} == *"Python script"* ]]; then
5656
echo "Wrong version of 'yq' installed, please install the one from https://github.com/mikefarah/yq"
5757
echo ""
58-
return 1
58+
exit 1
5959
fi
6060

6161
CAPO_CLOUDS_PATH=${CAPO_CLOUDS_PATH:-""}

0 commit comments

Comments
 (0)