aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-15 11:57:02 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-15 12:27:21 +1300
commit7503a23a550d1fb51998eccacf0c456efa5ae822 (patch)
treeaaab25c095870eff9937209f2d14129ee1b2348a /sh
parentMerge branch 'feature/bin-review' into develop (diff)
downloaddotfiles-7503a23a550d1fb51998eccacf0c456efa5ae822.tar.gz
dotfiles-7503a23a550d1fb51998eccacf0c456efa5ae822.zip
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.
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/tree.sh1
1 files changed, 1 insertions, 0 deletions
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