From 2c8c88465a54cf93c1f028d5751908e915abf646 Mon Sep 17 00:00:00 2001 From: avimehenwal Date: Thu, 3 Feb 2022 13:25:27 +0100 Subject: [PATCH] feat: add installation support for fedora linux os package name for librsvg is different on fedora linux --- setup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.sh b/setup.sh index ecf9277..b4267b6 100755 --- a/setup.sh +++ b/setup.sh @@ -31,6 +31,8 @@ else fi echo -n "Installing librsvg " +source /etc/os-release + if [[ "$OSTYPE" == "darwin"* ]]; then brew ls librsvg > /dev/null 2>&1 if [ $? -ne 0 ];then @@ -39,6 +41,13 @@ if [[ "$OSTYPE" == "darwin"* ]]; then else echo "[Skipped]" fi +elif [[ "$ID" == "fedora"* ]]; then + if [[ -z $(command -v rsvg-convert) ]]; then + sudo dnf install -y librsvg2-tools + echo "[DONE]" + else + echo "[Skipped]" + fi else dpkg -l librsvg2-bin 2>&1 > /dev/null DPKG_RC=$?