mirror of
https://github.com/vinceliuice/WhiteSur-gtk-theme.git
synced 2026-05-25 13:08:34 +00:00
Merge pull request #200 from rivanfebrian123/master
Use different approach for distro detection and do a code refactoring
This commit is contained in:
@@ -8,7 +8,7 @@ has_command() {
|
||||
"$1" -v $1 > /dev/null 2>&1
|
||||
}
|
||||
|
||||
if [ ! "$(which inkscape 2> /dev/null)" ]; then
|
||||
if ! has_command inkscape; then
|
||||
echo inkscape and optipng needs to be installed to generate the assets.
|
||||
if has_command zypper; then
|
||||
sudo zypper in inkscape optipng
|
||||
|
||||
Reference in New Issue
Block a user