From b07ede5d1dd8304745032e5559c7e50396e53548 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Thu, 9 May 2013 19:38:23 +0000 Subject: added option for red color for differences from last time --- check_for_translation_work.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'check_for_translation_work.sh') diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh index 9728bddb..d944e5c8 100755 --- a/check_for_translation_work.sh +++ b/check_for_translation_work.sh @@ -77,6 +77,9 @@ searching_for_new_pot_files_in_svn=0 # whether to look for new versions of the script and project files check_updates=1 +# red color for differences from last time (green 32, blue 34) +color_for_differences=31 + EOF echo "This script has not been configured yet for you. A template" echo "configuration file named .mageia-i18n-config has been made in your" @@ -334,7 +337,9 @@ echo $separator | tee -a "$logfile".log if [ -f "$logfile"_previous_run.log ]; then # show only differences and log them echo "Differences from last run:" | tee -a "$logfile".log + echo -e "\E["$color_for_differences"m" diff "$logfile"_this_run.log "$logfile"_previous_run.log | tee -a "$logfile".log + echo -e "\E[m" fi # if you use this script by click it in GUI uncomment the next line -- cgit v1.2.1