Skip to content

Commit e71bbcf

Browse files
committed
output the contents of the changed files if we're dry-running
this way we can see what's being changed
1 parent 6ca5dd7 commit e71bbcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/validate-plugin-version.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ main() {
110110
full_path="${PLUGIN_PATH}/${trimmed_filename}"
111111
if [[ -f "$full_path" ]]; then
112112
git add "$full_path"
113+
# If we're dry-running, output the contents of the changed files.
114+
if [[ "${DRY_RUN}" == "true" ]]; then
115+
cat "$full_path"
116+
fi
113117
fi
114118
done
115119

0 commit comments

Comments
 (0)