2025-04-19 09:56:12 +02:00
|
|
|
#!/usr/bin/env bash
|
2025-04-19 10:21:26 +02:00
|
|
|
|
|
|
|
|
###############################################################################################################################################################
|
|
|
|
|
# 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
|