aboutsummaryrefslogtreecommitdiff
path: root/bin/tmp
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/tmp
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/tmp')
-rwxr-xr-xbin/tmp12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/tmp b/bin/tmp
index cf46d8a..7855471 100755
--- a/bin/tmp
+++ b/bin/tmp
@@ -39,15 +39,15 @@ help() {
for flag in "$@"; do
case "$flag" in
- --)
+ (--)
break
;;
- --help)
+ (--help)
usage
help
exit
;;
- *)
+ (*)
;;
esac
done
@@ -56,17 +56,17 @@ REMOTE='euandre.org'
DIR='/srv/www/tmp'
while getopts 'dh' flag; do
case "$flag" in
- d)
+ (d)
printf 'Deleting %s:%s...\n' "$REMOTE" "$DIR/" >&2
ssh "$REMOTE" rm -rf "$DIR"/*
exit
;;
- h)
+ (h)
usage
help
exit
;;
- *)
+ (*)
exit 2
;;
esac