Skip to content

Commit bb5b02a

Browse files
authored
quieter output when the versions match (redhat-developer#682)
Signed-off-by: Nick Boldt <[email protected]>
1 parent 3010f7b commit bb5b02a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: modules/dynamic-plugins/rhdh-supported-plugins.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ for j in $jsons; do
169169
Version=$VersionJQ
170170
if [[ $match ]]; then
171171
Version=$(echo "${match}" | sed -r -e "s/.+\": \"([0-9.]+)\"/\1/")
172-
echo "[WARN] !! Using $pluginVersFile version = $Version, not $VersionJQ from $Path" | tee -a /tmp/warnings.txt
172+
if [[ "$Version" != "$VersionJQ" ]]; then
173+
echo "[WARN] !! Using $pluginVersFile version = $Version, not $VersionJQ from $Path" | tee -a /tmp/warnings.txt
174+
fi
173175
fi
174176

175177
# check if there's a newer version at npmjs.com and warn if so
@@ -184,7 +186,7 @@ for j in $jsons; do
184186
echo "[DEBUG] Latest x.y version at https://registry.npmjs.org/${Plugin/\//%2f} : $latestXYRelease"
185187
if [[ "$latestXYRelease" != "$Version" ]]; then
186188
echo "[WARN] !! Newer $latestXYRelease > $Version - should upgrade to https://www.npmjs.com/package/$Plugin/v/$latestXYRelease !!" | tee -a /tmp/warnings.txt
187-
echo | tee -a /tmp/warnings.txt
189+
# echo | tee -a /tmp/warnings.txt
188190
fi
189191

190192
# default to community unless it's a RH-authored plugin

0 commit comments

Comments
 (0)