Skip to content

Commit

Permalink
Added Check for Python3 in Mint theme code
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmetalfanx committed Feb 9, 2023
1 parent 2e5383b commit f45ec2f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions functions/universal/tic/themes/f_minty.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ function setupThemeLocale() {
userPrompt
}

function checkPython3() {
clear

echo -e "To build this theme you need to be able to run python3."

echo -e "Checking for Python3"
[ $(command -v python3) ]
}


## call this to install git theming
function gitExtractMintTheming() {
Expand Down Expand Up @@ -96,6 +105,15 @@ function gitExtractMintTheming() {
if [ "${themeType}" == "themes" ]; then
fancy_message action "Generating Themes"
cd "${gitDownloadedDir}" && userPrompt


fancy_message info "To build this theme you need to be able to run python3 scripts"
fancy_message action "Checking for Python3"
userPrompt
# try the "type command if this is not a good idea "
## this IS backwards FOR TESTING
[ ! $(command -v python3) ] && clear && fancy_message info "Skipping since Python3 support is not detected." && fancy_message info "I do not feel comfortable adding code to install python3 support at this point, so please consult your distro's support on how to do so" && userPrompt && return

python3 generate-themes.py
userPrompt
fi
Expand Down

0 comments on commit f45ec2f

Please sign in to comment.