diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-07-20 21:59:31 -0400 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-07-21 11:55:19 +0200 |
commit | af900c6223f33129559344114d0891bd6cf383e7 (patch) | |
tree | 3bf6af0ca9840444839d3e173db7befeea980eb5 /functions | |
parent | 70810a6eb90a2145246abbca4195aaf2d4741dcc (diff) |
functions: re-add status -v as a NOOP
Since this is technically public API, the -v flag shouldn't be removed
so easily. Re-add it, but make it a NOOP to support existing uses of it.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -171,7 +171,16 @@ stat_die() { } status() { - [[ $1 = '-q' ]] && { local quiet=1; shift; } + local quiet + case $1 in + -q) + quiet=1 + ;;& + -v) + # NOOP: supported for backwards compat + shift + ;; + esac stat_busy "$1" shift if (( quiet )); then |