dotfiles/.vim/bundle/update.fish

31 lines
447 B
Fish
Raw Normal View History

2017-10-21 12:37:28 +02:00
#!/usr/bin/fish
for folder in *
echo -n "[ ] Mise à jour de $folder"
if test -d $folder
cd $folder
git pull >/dev/null ^/dev/null
and begin
echo -en "\r[ "
set_color green
echo -n OK
set_color normal
echo " ]"
end
or begin
echo -en "\r["
set_color red
echo FAIL
set_color normal
echo -n "]"
end
cd -
else
echo -ne "\r["
set_color yellow
echo -n SKIP
set_color normal
echo "]"
end
end