From 74f71c984b5336b931c6e1fa77587ccf9b0ad986 Mon Sep 17 00:00:00 2001 From: lhark Date: Sun, 7 Jun 2015 16:34:44 +0200 Subject: [PATCH] local declaration not working -> removed --- zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index 432a788..43c7f84 100644 --- a/zshrc +++ b/zshrc @@ -15,10 +15,10 @@ export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:~/bin # Mise à jour automatique à partir du repo distant cd /home/$USER/rc git fetch -local gst=$(command git status --porcelain -b 2> /dev/null) -if $(echo "$gst" | grep '^## .*ahead' &> /dev/null); then +git_st=$(command git status --porcelain -b 2> /dev/null) +if $(echo "$git_st" | grep '^## .*ahead' &> /dev/null); then echo"You have unpushed business in /home/$USER/rc" -elif $(echo "$gst" | grep '^## .*behind' &> /dev/null); then +elif $(echo "$git_st" | grep '^## .*behind' &> /dev/null); then echo "Type Y to update .zshrc: \c" read line if [ "$line" = Y ] || [ "$line" = y ]; then