Amélioration de la présentation

This commit is contained in:
Breizh 2018-08-06 23:32:44 +02:00
parent 027e026545
commit 73ddb5ce47

View file

@ -5,8 +5,17 @@ source progress_info.sh
for rep in * for rep in *
do do
progress_start "\e[1;37m$rep\e[0m" progress_start "\e[1;37m$rep\e[0m"
[[ ! -d $rep/.git ]] && progress_end "SKIP" blue && continue
[[ ! -d $rep/.git ]] && {
progress_end "SKIP" blue
continue
}
cd $rep cd $rep
output=$(git pull 2>&1) && progress_end " OK " green "$(echo -e "\e[1;37m$rep\e[0m\n$output" | sed 'N;s/\n/\n /g;P;D')" || progress_end "FAIL" red "$(echo -e "\e[1;37m$rep\e[0m\n$output" | sed 'N;s/\n/\n /g;P;D')"
output=$(git pull 2>&1) \
&& progress_end " OK " green "$(echo -e "\e[1;37m$rep\e[0m\n$output" | sed 'N;s/\n/\n /g;P;D')" \
|| progress_end "FAIL" red "$(echo -e "\e[1;37m$rep\e[0m\n$output" | sed 'N;s/\n/\n /g;P;D')"
cd - &>/dev/null cd - &>/dev/null
done done