mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 13:35:13 +00:00
desktopToDarwinBundle: Simplify double negation
This commit is contained in:
parent
21fe5d3b8b
commit
c3d974e441
@ -132,8 +132,8 @@ convertIconTheme() {
|
||||
}
|
||||
|
||||
iconsdir=$(getIcons "$sharePath" "apps/${iconName}" "$theme")
|
||||
if [[ ! -z "$(ls -1 "$iconsdir/"*)" ]]; then
|
||||
icnsutil compose "$out/${iconName}.icns" "$iconsdir/"*
|
||||
if [[ -n "$(ls -1 "$iconsdir/"*)" ]]; then
|
||||
else
|
||||
echo "Warning: no icons were found. Creating an empty icon for ${iconName}.icns."
|
||||
touch "$out/${iconName}.icns"
|
||||
|
Loading…
Reference in New Issue
Block a user