desktopToDarwinBundle: Change empty directory test

`ls -1 "$iconsdir/"*` listed the source directory for me when the glob
had no matches. Switching to `-A` circumvents this problem and has the
added advantage that it cannot run into argument list length limits.
This commit is contained in:
toonn 2022-03-31 12:45:33 +02:00
parent 7ef15c96dc
commit 30e8e0a9a3
No known key found for this signature in database
GPG Key ID: 44FF902A66DF4576

View File

@ -163,7 +163,7 @@ convertIconTheme() {
}
iconsdir=$(getIcons "$sharePath" "apps/${iconName}" "$theme")
if [[ -n "$(ls -1 "$iconsdir/"*)" ]]; then
if [[ -n "$(ls -A1 "$iconsdir")" ]]; then
icnsutil compose --toc "$out/${iconName}.icns" "$iconsdir/"*
else
echo "Warning: no icons were found. Creating an empty icon for ${iconName}.icns."