File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 38
38
echo " Error: No clouds.yaml provided"
39
39
echo " You must provide a valid clouds.yaml script to generate a cloud.conf"
40
40
echo " "
41
- return 1
41
+ exit 1
42
42
fi
43
43
44
44
# Check if os cloud is provided
48
48
echo " Error: No cloud specified"
49
49
echo " You must specify which cloud you want to use."
50
50
echo " "
51
- return 1
51
+ exit 1
52
52
fi
53
53
54
54
CAPO_YQ_TYPE=$( file " $( which yq) " )
55
55
if [[ ${CAPO_YQ_TYPE} == * " Python script" * ]]; then
56
56
echo " Wrong version of 'yq' installed, please install the one from https://github.com/mikefarah/yq"
57
57
echo " "
58
- return 1
58
+ exit 1
59
59
fi
60
60
61
61
CAPO_CLOUDS_PATH=${CAPO_CLOUDS_PATH:- " " }
Original file line number Diff line number Diff line change 38
38
echo " Error: No clouds.yaml provided"
39
39
echo " You must provide a valid clouds.yaml script to generate a cloud.conf"
40
40
echo " "
41
- return 1
41
+ exit 1
42
42
fi
43
43
44
44
# Check if os cloud is provided
48
48
echo " Error: No cloud specified"
49
49
echo " You must specify which cloud you want to use."
50
50
echo " "
51
- return 1
51
+ exit 1
52
52
fi
53
53
54
54
CAPO_YQ_TYPE=$( file " $( which yq) " )
55
55
if [[ ${CAPO_YQ_TYPE} == * " Python script" * ]]; then
56
56
echo " Wrong version of 'yq' installed, please install the one from https://github.com/mikefarah/yq"
57
57
echo " "
58
- return 1
58
+ exit 1
59
59
fi
60
60
61
61
CAPO_CLOUDS_PATH=${CAPO_CLOUDS_PATH:- " " }
You can’t perform that action at this time.
0 commit comments