From 7503a23a550d1fb51998eccacf0c456efa5ae822 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 15 Jan 2018 11:57:02 +1300 Subject: Explicitly ignore uninteresting tree(1) opts ShellCheck 0.4.7 complained about this: In sh/shrc.d/tree.sh line 12: case $opt in ^-- SC2220: Invalid flags are not handled. Add a *) case. --- sh/shrc.d/tree.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sh/shrc.d/tree.sh b/sh/shrc.d/tree.sh index ca134fe2..d462f3e1 100644 --- a/sh/shrc.d/tree.sh +++ b/sh/shrc.d/tree.sh @@ -12,6 +12,7 @@ tree() { case $opt in n) n=1 ;; C) C=1 ;; + *) ;; esac done [ -z "$C" ] || exit 0 -- cgit v1.2.3