Skip to content

Commit d3006d2

Browse files
committed
beautysh: ignore switch cases
1 parent 80dcc64 commit d3006d2

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

bin/backup

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ expire_date=
8686
archive_prefix=
8787
quiet=()
8888

89+
# @formatter:off
90+
# TEMP: remove when https://github.com/lovesegfault/beautysh/issues/265 is fixed
8991
while :; do
9092
case "${1:-}" in
9193
-s | --source)
@@ -170,6 +172,7 @@ while :; do
170172
esac
171173
shift
172174
done
175+
# @formatter:on
173176

174177
check-root
175178

bin/benchmark

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,8 @@ report_file_prefix=
362362
sys_check=
363363
benchmark_depth=
364364
params_file=
365+
# @formatter:off
366+
# TEMP: remove when https://github.com/lovesegfault/beautysh/issues/265 is fixed
365367
while :; do
366368
case "${1:-}" in
367369
-r | --report) create_report=1 ;;
@@ -399,6 +401,7 @@ while :; do
399401
esac
400402
shift
401403
done
404+
# @formatter:on
402405

403406
if [[ -z "${sys_check}" && -z "${benchmark_depth}" ]]; then
404407
echo "Benchmark depth missing (quick or full)" >&2

bin/clean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ journal_retention=2w
6464
quiet=()
6565
redirection=/dev/stdout
6666

67+
# @formatter:off
68+
# TEMP: remove when https://github.com/lovesegfault/beautysh/issues/265 is fixed
6769
while :; do
6870
case "${1:-}" in
6971
-j | --journal)
@@ -92,6 +94,7 @@ while :; do
9294
esac
9395
shift
9496
done
97+
# @formatter:on
9598

9699
uid=$(id -u)
97100
if [[ "${uid}" -ne 0 ]]; then

bin/pass-man

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ action="${1:-}"
9797
[[ -n "${action}" ]] && shift
9898

9999
# Switch action
100+
# @formatter:off
101+
# TEMP: remove when https://github.com/lovesegfault/beautysh/issues/265 is fixed
100102
case "${action}" in
101103
open) _vault-open "${@}" ;;
102104
close) _vault-close "${@}" ;;
@@ -114,5 +116,6 @@ case "${action}" in
114116
"") print-error Action missing && _usage ;;
115117
*) print-error Invalid action && _usage ;;
116118
esac
119+
# @formatter:on
117120

118121
exit 0

0 commit comments

Comments
 (0)