Amélioration de la présentation
This commit is contained in:
parent
027e026545
commit
73ddb5ce47
1 changed files with 11 additions and 2 deletions
13
update.sh
13
update.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue