Skip to content

Commit ce268fe

Browse files
committed
Adding check if a resource actually exists
Installs all resources now only, if the respective directory contains a Chart.yaml file Signed-off-by: Sebastian Franz <sebastian.franz@iteratec.com>
1 parent 968ecdc commit ce268fe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎bin/install.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@ function installResources() {
130130
[ -d "${path}" ] || continue # skip if not a directory
131131
local directory
132132
directory="$(basename "${path}")"
133-
resources+=("${directory}")
133+
# Check if directory contains Chart.yaml File:
134+
if [[ $(find "$resource_directory"/"$directory"/Chart.yaml 2>/dev/null | wc -l) -gt 0 ]]; then
135+
resources+=("${directory}")
136+
fi
134137
done
135138

136139
if [[ $unattended == True ]]; then

0 commit comments

Comments
 (0)