diff options
| author | Tslil Clingman <hiato1@gmail.com> | 2014-03-03 22:14:09 +0200 |
|---|---|---|
| committer | Tslil Clingman <hiato1@gmail.com> | 2014-03-03 22:14:09 +0200 |
| commit | e09595fc13a59e4b84674b0875f66e6afcd801b2 (patch) | |
| tree | ab737109e42abd9ace809972cdc75b99a8ac5188 /vcs | |
| parent | f2b32d25177be465c7209072eb93ae14fc16dfa3 (diff) | |
Silly spaces in passwords not being captured
Diffstat (limited to 'vcs')
| -rwxr-xr-x | vcs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -17,12 +17,12 @@ rstr=" %F{28}●%f" if [[ -d ".git" || -d "../.git" || -d "../../.git" ]]; then outp=$(git status) VCS_STR="×" - VCS_INF=$(echo $outp | head -n 1 | cut -d' ' -f 4-) - check $outp "^# Untracked files:$" + VCS_INF=$(echo $outp | head -n 1 | cut -d' ' -f 3-) + check $outp "^Untracked files:$" [[ $? = 0 ]] && VCS_NEW=$nstr - check $outp "^# Changes not staged for commit:$" + check $outp "^Changes not staged for commit:$" [[ $? = 0 ]] && VCS_MOD=$mstr - check $outp "^# Changes to be committed:$" + check $outp "^Changes to be committed:$" [[ $? = 0 ]] && VCS_REC=$rstr else if [[ -d "_darcs" || -d "../_darcs" || -d "../../_darcs" ]]; then fls=$(darcs show files) |
