Files
Autodesk-Fusion-360-for-Linux/files/builds/dev-branch/autodesk_fusion_installer_x86-64.sh

31 lines
1.8 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
###############################################################################################################################################################
# THE INITIALIZATION OF DEPENDENCIES STARTS HERE: #
###############################################################################################################################################################
# CONFIGURATION OF THE COLOR SCHEME:
RED=$'\033[0;31m'
YELLOW=$'\033[0;33m'
GREEN=$'\033[0;32m'
NOCOLOR=$'\033[0m'
###############################################################################################################################################################
# ALL FUNCTIONS ARE HERE: #
###############################################################################################################################################################
check_if_wine_exists() {
if command -v wine &> /dev/null; then
echo -e "${GREEN}✅ Wine is installed. The installer will be continued.${NOCOLOR}"
else
echo -e "${RED}❌ Wine is not installed. The installer will be terminated.${NOCOLOR}"
exit 1
fi
}
###############################################################################################################################################################
# THE PROGRAM STARTED HERE: #
###############################################################################################################################################################
check_if_wine_exists