File tree Expand file tree Collapse file tree
modules/extend_dynamic-plugins-reference Expand file tree Collapse file tree Original file line number Diff line number Diff line change 115115fetch_catalog_index () {
116116 local image=" ${CATALOG_INDEX_REGISTRY} /plugin-catalog-index:${INDEX_TAG} "
117117 if ! command -v skopeo > /dev/null 2>&1 ; then
118- echo -e " ${red} [ERROR] skopeo is required but not found.${norm} "
118+ echo -e " ${red} [ERROR] skopeo is required but not found.${norm} " >&2
119119 exit 1
120120 fi
121121 if ! command -v jq > /dev/null 2>&1 ; then
122- echo -e " ${red} [ERROR] jq is required but not found.${norm} "
122+ echo -e " ${red} [ERROR] jq is required but not found.${norm} " >&2
123123 exit 1
124124 fi
125125 echo -e " ${green} Fetching $image ...${norm} "
@@ -134,6 +134,7 @@ fetch_catalog_index() {
134134 tar xf " $unpack /$layer " -C " $catalogindextmpdir "
135135 done
136136 rm -rf " $unpack " " $archive "
137+ exit 0
137138}
138139
139140generate_dynamic_plugins_table () {
@@ -148,12 +149,12 @@ generate_dynamic_plugins_table() {
148149 )
149150 ls ${catalogindextmpdir}
150151 if [[ ! -d " $src " ]]; then
151- echo -e " ${red} [ERROR] Missing directory in catalog index image: $src ${norm} "
152+ echo -e " ${red} [ERROR] Missing directory in catalog index image: $src ${norm} " >&2
152153 exit 1
153154 fi
154155 for f in " ${files[@]} " ; do
155156 if [[ ! -f " $src /$f " ]]; then
156- echo -e " ${red} [ERROR] Missing file in catalog index image: $src /$f ${norm} "
157+ echo -e " ${red} [ERROR] Missing file in catalog index image: $src /$f ${norm} " >&2
157158 exit 1
158159 fi
159160 cp " $src /$f " " ${SCRIPT_DIR} /$f "
You can’t perform that action at this time.
0 commit comments