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:
parent
7ef15c96dc
commit
30e8e0a9a3
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue