added unsupported distro dependency array

This commit is contained in:
Václav Šmejkal 2024-02-23 09:52:33 +01:00
parent c294be679b
commit 07c82120dd
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -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.so" > /etc/env.d/99why2-chat
echo "LDPATH=/usr/lib/libwhy2-chat-config.so" > /etc/env.d/99why2-chat-config echo "LDPATH=/usr/lib/libwhy2-chat-config.so" > /etc/env.d/99why2-chat-config
env-update && source /etc/profile env-update && source /etc/profile
else else # 'Unsupported' distro
# '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\ngcc\njson-c\ncurl\nlibgit2\ntmux\nmake\n\nand you'll be fine."
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 exit
fi fi