#!/bin/bash res=$(git pull) #echo $res ok="up-to-date" if [[ $res = *"up-to-date"* ]]; then echo "It's up to date !" else echo "We'll have to restart !"
fi