diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-10 00:23:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-10 00:23:02 +0300 |
commit | 9f208be76e202a70e80f08362f6b8808ce7ea649 (patch) | |
tree | 2d587224771752b715312753dd25b112f6edbff6 | |
parent | 19964a628ebd7729ca35657831b09a739b77fe17 (diff) | |
download | all-9f208be76e202a70e80f08362f6b8808ce7ea649.tar.gz all-9f208be76e202a70e80f08362f6b8808ce7ea649.tar.bz2 all-9f208be76e202a70e80f08362f6b8808ce7ea649.tar.xz all-9f208be76e202a70e80f08362f6b8808ce7ea649.zip |
Add into status.sh script check for directories without .git.
-rwxr-xr-x | status.sh | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -46,6 +46,10 @@ function status { if [ ! -d "$1" ]; then return fi + if [ ! -d "$1/.git" ]; then + echo -e "\e[1;31mError: directory '$1' without git detected. Please remote it and install if need tasks.\e[0m" + return + fi DIR=$(pwd) cd "$1" STR=$(git diff --stat --color=always) |