summaryrefslogtreecommitdiff
path: root/push.sh
diff options
context:
space:
mode:
Diffstat (limited to 'push.sh')
-rwxr-xr-xpush.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/push.sh b/push.sh
index 9e75e8c..3ffdb60 100755
--- a/push.sh
+++ b/push.sh
@@ -4,14 +4,14 @@ function status {
if [ ! -d "$1" ]; then
return
fi
- DIR=`pwd`
+ DIR=$(pwd)
cd "$1"
- STR=`git status|grep "Your branch is ahead"`
+ STR=$(git status|grep "Your branch is ahead")
if [[ -n "${STR}" ]]; then
echo "pusing $2"
git push
fi
- cd $DIR
+ cd "$DIR"
}
status . evol-all