Skip to content

Commit 8c9adce

Browse files
committed
CI: Fix spurious non-zero return status when empty changed list.
Signed-off-by: Dinko Korunic <[email protected]>
1 parent 5729e0b commit 8c9adce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.circleci/install_charts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ main() {
6262

6363
echo "Testing for chart repo changes"
6464
local changed
65-
changed=$(docker_exec ct list-changed | grep -v "is not a valid chart directory" | grep -c '^[a-zA-Z0-9]')
65+
changed=$(docker_exec ct list-changed | grep -v "is not a valid chart directory" | grep -c '^[a-zA-Z0-9]' || true)
6666
if [[ ${changed} -eq 0 ]]; then
6767
echo "No chart changes detected"
6868
return

0 commit comments

Comments
 (0)