aboutsummaryrefslogtreecommitdiff
path: root/bin/print
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-07-29 08:52:48 -0300
committerEuAndreh <eu@euandre.org>2023-07-29 08:52:48 -0300
commitcef76cd1b0ae32ba1d9733c9d09d62de24559743 (patch)
tree8922a05e83d3b1ea2e98660ed843606ee8046853 /bin/print
parentetc/sh/rc: When X is available, set the keyboard "Insert" key (diff)
downloaddotfiles-cef76cd1b0ae32ba1d9733c9d09d62de24559743.tar.gz
dotfiles-cef76cd1b0ae32ba1d9733c9d09d62de24559743.tar.xz
bin/*: Add matching parenthesis to case clauses
Diffstat (limited to 'bin/print')
-rwxr-xr-xbin/print14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/print b/bin/print
index f643edd..5aef102 100755
--- a/bin/print
+++ b/bin/print
@@ -94,15 +94,15 @@ main() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
@@ -111,10 +111,10 @@ QUALITY_SET=false
DUPLEX=
while getopts 'dq:h' flag; do
case "$flag" in
- d)
+ (d)
DUPLEX=1
;;
- q)
+ (q)
QUALITY_SET=true
case "$OPTARG" in
low)
@@ -132,12 +132,12 @@ while getopts 'dq:h' flag; do
;;
esac
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
usage >&2
exit 2
;;