diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-21 23:33:36 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-21 23:33:36 +1200 |
commit | 61fe2a0a85bf59a8c9306e888416900fa3c27f17 (patch) | |
tree | 13ba1b12f77127a67f33a7fa1d490de4d52126e9 | |
parent | Enhance parsing of hg status a bit too (diff) | |
download | dotfiles-61fe2a0a85bf59a8c9306e888416900fa3c27f17.tar.gz dotfiles-61fe2a0a85bf59a8c9306e888416900fa3c27f17.zip |
Correct var definitions for read
-rw-r--r-- | bash/bashrc.d/prompt.bash | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index e2dfdc87..00f6538e 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -58,7 +58,7 @@ prompt() { # Safely read status with -z --porcelain local line ready modified untracked - while IFS= read -d $'\0' -r line _; do + while IFS= read -d $'\0' -r line; do if [[ $line == [MADRC]* ]]; then ready=1 fi @@ -110,7 +110,7 @@ prompt() { # Safely read status from ``git porcelain'' local line modified untracked - while IFS= read -d $'\0' -r line _; do + while IFS= read -d $'\0' -r line; do if [[ $line == '?'* ]]; then untracked=1 else @@ -168,7 +168,7 @@ prompt() { # Parse the output of svn info to determine working copy state local symbol modified untracked - while read -r symbol; do + while read -r symbol _; do if [[ $symbol == *'?'* ]]; then untracked=1 else |