diff options
-rw-r--r-- | sh/shrc.d/tree.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/shrc.d/tree.sh b/sh/shrc.d/tree.sh index dd78f8ee..b4f91df8 100644 --- a/sh/shrc.d/tree.sh +++ b/sh/shrc.d/tree.sh @@ -7,7 +7,8 @@ tree() { if ( # Not if -n is in the arguments and -C isn't - while getopts 'nC' opt ; do + # Don't tell me about missing options, either + while getopts 'nC' opt 2>/dev/null ; do case $opt in n) n=1 ;; C) C=1 ;; |