From 1972df5b4f2562079fcc7a8a484bca0501ec3703 Mon Sep 17 00:00:00 2001 From: ivoripuion <1049971327@qq.com> Date: Mon, 17 Jan 2022 13:10:41 +0800 Subject: [PATCH] fix --- config/setup.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/setup.sh b/config/setup.sh index 9a10f75..3188aeb 100755 --- a/config/setup.sh +++ b/config/setup.sh @@ -2,7 +2,11 @@ ## Can be called by doing: "Veil.py --setup" ## Global variables -os="$( awk -F '=' '/^ID=/ {print $2}' /etc/os-release 2>&- )" +if [ "$( awk -F '=' '/^NAME=/ {print $2}' /etc/os-release 2>&- )" == "\"Parrot OS\"" ]; then + os="parrot" +else + os="$( awk -F '=' '/^ID=/ {print $2}' /etc/os-release 2>&- )" +fi if [ "${os}" == "arch" ] \ || [ "${os}" == "manjaro" ]\ @@ -599,7 +603,6 @@ func_package_deps(){ echo -e " ${RED}[ERROR] ${msg}${RESET}\n" fi elif [ "${os}" == "arch" ] \ - || [ "${os}" == "blackarch" ] \ || [ "${os}" == "blackarch" ]; then echo -e "\n\n [*] ${YELLOW}Installing Wine 32-bit on x86_64 System (via PACMAN)${RESET}\n" if grep -Fxq "#[multilib]" /etc/pacman.conf; then