diff --git a/controller.sh b/controller.sh index f04351f..fe06e9d 100755 --- a/controller.sh +++ b/controller.sh @@ -1,4 +1,4 @@ -#!/bin/bash -x +#!/bin/bash # Configuration generator=/home/files/scripts/generator.sh diff --git a/generator.sh b/generator.sh index 7403153..9dd2274 100755 --- a/generator.sh +++ b/generator.sh @@ -9,9 +9,12 @@ webpath="$(echo "${1:-$PWD}" | sed "s#^$root/##g")" [[ "$webpath" =~ ^$root ]] && unset webpath # Couleur de logs juste parce que c'est joli -blue=$(tput setaf 4) -green=$(tput setaf 2) -reset=$(tput sgr0) +if [[ -n "$TERM" ]] +then + blue=$(tput setaf 4) + green=$(tput setaf 2) + reset=$(tput sgr0) +fi # Annonce du début du traitement echo "${blue}Start${reset} /$webpath"