mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Fix unbound variable error in detect-new-fmas-in-pr.sh (#36613)
This commit is contained in:
parent
ee1be26878
commit
33a1d82f51
1 changed files with 5 additions and 1 deletions
6
.github/scripts/detect-new-fmas-in-pr.sh
vendored
6
.github/scripts/detect-new-fmas-in-pr.sh
vendored
|
|
@ -50,7 +50,11 @@ extract_slugs_from_changed_manifests() {
|
|||
done <<< "$changed_files"
|
||||
|
||||
# Remove duplicates and sort
|
||||
printf '%s\n' "${slugs[@]}" | sort -u
|
||||
if [ ${#slugs[@]} -eq 0 ]; then
|
||||
echo ""
|
||||
else
|
||||
printf '%s\n' "${slugs[@]}" | sort -u
|
||||
fi
|
||||
}
|
||||
|
||||
# Get changed files in outputs directory
|
||||
|
|
|
|||
Loading…
Reference in a new issue