summaryrefslogtreecommitdiff
path: root/push.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-23 16:18:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-23 16:18:51 +0300
commitc1047c1ea1a6c8008159836182eb65a52f7a1fd3 (patch)
treeb3572c681591111f1ad6fec85cf9256d115acffc /push.sh
parentd91e921c0bc72b23d17a3581a420295ffc856b4c (diff)
downloadall-c1047c1ea1a6c8008159836182eb65a52f7a1fd3.tar.gz
all-c1047c1ea1a6c8008159836182eb65a52f7a1fd3.tar.bz2
all-c1047c1ea1a6c8008159836182eb65a52f7a1fd3.tar.xz
all-c1047c1ea1a6c8008159836182eb65a52f7a1fd3.zip
Fix style in shell scripts.
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