desktopToDarwinBundle: Simplify double negation

This commit is contained in:
toonn 2022-03-21 12:44:51 +01:00
parent 21fe5d3b8b
commit c3d974e441
No known key found for this signature in database
GPG key ID: 44FF902A66DF4576

View file

@ -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"