1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-14 14:10:37 +03:00

ament: fix unbound variable error

This commit is contained in:
Ben Wolsieffer 2019-12-03 17:43:09 -05:00
parent 10731ea721
commit 05f334d6d3

View file

@ -7,7 +7,7 @@ declare -gA _amentPackagesSeen
_findAmentPackages() {
local pkg="$1"
# Deduplicate the packages
if [ -z "${_amentPackagesSeen["$pkg"]}" ] && isAmentPackage "$pkg"; then
if [ -z "${_amentPackagesSeen["$pkg"]:-}" ] && isAmentPackage "$pkg"; then
addToSearchPath AMENT_PREFIX_PATH "$pkg"
fi
_amentPackagesSeen["$pkg"]=1