pkgs: fix shell formatting
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:
Bruno BELANYI 2024-12-18 20:33:22 -05:00
parent 322fbc970b
commit f4f1aad1c0
5 changed files with 11 additions and 11 deletions

View file

@ -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

View file

@ -62,7 +62,7 @@ do_toggle() {
}
case "$1" in
up|down)
up | down)
do_change_volume "$@"
;;
toggle)

View file

@ -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 "$@"

View file

@ -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:

View file

@ -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: