pkgs: fix shell formatting
All checks were successful
ci/woodpecker/push/check Pipeline was successful
All checks were successful
ci/woodpecker/push/check Pipeline was successful
Ran `shfmt --write --indent 4 --simplify --case-indent`, in accordance with my editor settings.
This commit is contained in:
parent
322fbc970b
commit
f4f1aad1c0
|
@ -66,7 +66,7 @@ query_password() {
|
|||
printf '%s\n' "$PASSWORD"
|
||||
}
|
||||
|
||||
if [ $# -lt 1 ] || [ $# -gt 2 ]; then
|
||||
if [ $# -lt 1 ] || [ $# -gt 2 ]; then
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -62,7 +62,7 @@ do_toggle() {
|
|||
}
|
||||
|
||||
case "$1" in
|
||||
up|down)
|
||||
up | down)
|
||||
do_change_volume "$@"
|
||||
;;
|
||||
toggle)
|
||||
|
|
|
@ -81,23 +81,23 @@ parse_args() {
|
|||
shift
|
||||
|
||||
case "$opt" in
|
||||
-h|--help)
|
||||
-h | --help)
|
||||
usage
|
||||
exit
|
||||
;;
|
||||
-f|--flake-output)
|
||||
-f | --flake-output)
|
||||
FLAKE_OUTPUTS+=("$1")
|
||||
shift
|
||||
;;
|
||||
-o|--output)
|
||||
-o | --output)
|
||||
OUTPUT_FILE="$1"
|
||||
shift
|
||||
;;
|
||||
-n|--new-rev)
|
||||
-n | --new-rev)
|
||||
NEW_REV="$(git rev-parse "$1")"
|
||||
shift
|
||||
;;
|
||||
-p|--previous-rev)
|
||||
-p | --previous-rev)
|
||||
PREVIOUS_REV="$(git rev-parse "$1")"
|
||||
shift
|
||||
;;
|
||||
|
@ -157,7 +157,7 @@ list_dev_shells() {
|
|||
}
|
||||
|
||||
diff_output() {
|
||||
local PREV NEW;
|
||||
local PREV NEW
|
||||
PREV="$(mktemp --dry-run)"
|
||||
NEW="$(mktemp --dry-run)"
|
||||
|
||||
|
@ -169,7 +169,7 @@ diff_output() {
|
|||
printf 'Closure diff for `%s`:\n```\n' "$1"
|
||||
nix store diff-closures "$PREV" "$NEW" | sanitize_output
|
||||
printf '```\n\n'
|
||||
} >> "$OUTPUT_FILE"
|
||||
} >>"$OUTPUT_FILE"
|
||||
}
|
||||
|
||||
parse_args "$@"
|
||||
|
|
|
@ -15,7 +15,7 @@ usage() {
|
|||
exec 1>&2
|
||||
fi
|
||||
|
||||
cat << EOF
|
||||
cat <<EOF
|
||||
Usage: $0 [options] [string]
|
||||
Send an arbitrary string to the terminal clipboard using the OSC 52 escape
|
||||
sequence as specified in xterm:
|
||||
|
|
|
@ -13,7 +13,7 @@ usage() {
|
|||
exec 1>&2
|
||||
fi
|
||||
|
||||
cat << EOF
|
||||
cat <<EOF
|
||||
Usage: $0 [options] <title> <message>
|
||||
Send a notification (title and message) to the host system using the OSC 777
|
||||
escape sequence:
|
||||
|
|
Loading…
Reference in a new issue