Skip to content

Commit c24e559

Browse files
authored
Merge pull request #2 from supplypike/edge-cases
edge cases
2 parents 46471e8 + 6c47016 commit c24e559

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ set -e
3535
# Formatting hacks
3636
output=$(cat diff.md | sed "s|$base_ref_build_dir/||" | sed '/Comparing/ s/&.*$//' | sed "s|^#\{2,\} Comparing| Comparing|" | sed "s|^# Comparing|## Comparing|")
3737

38+
if [ ${#output} -gt 65535 ]; then
39+
output="Kustomize diff too large to display"
40+
fi
41+
42+
if [ -z "$output" ]; then
43+
output="Kustomize diff did not find any differences"
44+
fi
45+
3846
{
3947
echo 'diff<<EOF'
4048
echo "$output"

0 commit comments

Comments
 (0)