desktopToDarwinBundle: Simplify double negation
This commit is contained in:
parent
21fe5d3b8b
commit
c3d974e441
|
@ -132,8 +132,8 @@ convertIconTheme() {
|
||||||
}
|
}
|
||||||
|
|
||||||
iconsdir=$(getIcons "$sharePath" "apps/${iconName}" "$theme")
|
iconsdir=$(getIcons "$sharePath" "apps/${iconName}" "$theme")
|
||||||
if [[ ! -z "$(ls -1 "$iconsdir/"*)" ]]; then
|
|
||||||
icnsutil compose "$out/${iconName}.icns" "$iconsdir/"*
|
icnsutil compose "$out/${iconName}.icns" "$iconsdir/"*
|
||||||
|
if [[ -n "$(ls -1 "$iconsdir/"*)" ]]; then
|
||||||
else
|
else
|
||||||
echo "Warning: no icons were found. Creating an empty icon for ${iconName}.icns."
|
echo "Warning: no icons were found. Creating an empty icon for ${iconName}.icns."
|
||||||
touch "$out/${iconName}.icns"
|
touch "$out/${iconName}.icns"
|
||||||
|
|
Loading…
Reference in a new issue