diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-23 16:18:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-23 16:18:51 +0300 |
commit | c1047c1ea1a6c8008159836182eb65a52f7a1fd3 (patch) | |
tree | b3572c681591111f1ad6fec85cf9256d115acffc /push.sh | |
parent | d91e921c0bc72b23d17a3581a420295ffc856b4c (diff) | |
download | all-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-x | push.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |