#!/bin/bash

#Cursor GPT prompt:
#Please do any improvement you find fit.
#
#Please comment (#) in the end what was changed and why it is better.
#
#Please don't change the color names.

# Colors
Red='\e[0;31m'  # Kept color names as requested
BRed='\e[1;31m'  # Kept color names as requested
BIRed='\e[1;91m'  # Kept color names as requested
Gre='\e[0;32m'  # Kept color names as requested
BGre='\e[1;32m'  # Kept color names as requested
BBlu='\e[1;34m'  # Kept color names as requested
BWhi='\e[1;37m'  # Kept color names as requested
RCol='\e[0m'  # Kept color names as requested

codename="$(grep UBUNTU_CODENAME /etc/os-release | cut -d = -f 2)"
osname="$(grep -E '="?Ubuntu"?$' /etc/os-release | cut -d = -f 2)"

if [ "$codename" == "mantic" ] && [[ "$osname" =~ \"?Ubuntu\"? ]]; then
  bash src/post-23-transparent.sh "$@"  # Changed to add space after 'bash' for better readability
else
  echo -e "${Red}
------------------------------------------------------------------
Sorry, Script is only for Ubuntu ${BWhi}23.04 & 23.10${Red} Only
Exiting...
------------------------------------------------------------------
${RCol}"  # Added explanation for the error message
  exit 1
fi
