From 07c82120dd20c5dbff78796509abb883196e3d30 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 23 Feb 2024 09:52:33 +0100 Subject: [PATCH] added unsupported distro dependency array --- configure.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/configure.sh b/configure.sh index add4fb6..19ba8c7 100755 --- a/configure.sh +++ b/configure.sh @@ -41,9 +41,18 @@ elif [[ $DISTRO == "Gentoo" ]]; then echo "LDPATH=/usr/lib/libwhy2-chat.so" > /etc/env.d/99why2-chat echo "LDPATH=/usr/lib/libwhy2-chat-config.so" > /etc/env.d/99why2-chat-config env-update && source /etc/profile -else - # 'Unsupported' distro - echo -e "It seems you are using unsupported distribution...\nDon't worry, just install these dependencies:\n\ngcc\njson-c\ncurl\nlibgit2\ntmux\nmake\n\nand you'll be fine." +else # 'Unsupported' distro + IFS=' ' read -r -a dependency_array <<< "$ARCH_GENTOO_COMMON" # Split into dependency_array + + echo -e "It seems you are using unsupported distribution...\nDon't worry, just install these dependencies:\n" + + for dependency in "${dependency_array[@]}" # Iter + do + echo "$dependency" + done + + echo -e "\nand you'll be fine." + exit fi