mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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
@ -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 New Issue
Block a user