Skip to content

Commit aa36398

Browse files
authored
Merge pull request #856 from scop/renovate/scop-pre-commit-shfmt-3.x
chore(pre-commit): update scop/pre-commit-shfmt to v3.6.0-1
2 parents bbe2f09 + 001db11 commit aa36398

File tree

7 files changed

+14
-15
lines changed

7 files changed

+14
-15
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
stages: [commit-msg]
1010

1111
- repo: https://github.com/scop/pre-commit-shfmt
12-
rev: v3.5.1-1
12+
rev: v3.6.0-1
1313
hooks:
1414
- id: shfmt-docker
1515
types: [text]

bash_completion

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ _get_cword()
716716
_get_pword()
717717
{
718718
if ((COMP_CWORD >= 1)); then
719-
_get_cword "${@:-}" 1
719+
_get_cword "${@-}" 1
720720
fi
721721
}
722722

@@ -1371,9 +1371,9 @@ _available_interfaces()
13711371
local PATH=$PATH:/sbin
13721372

13731373
COMPREPLY=($({
1374-
if [[ ${1:-} == -w ]]; then
1374+
if [[ ${1-} == -w ]]; then
13751375
iwconfig
1376-
elif [[ ${1:-} == -a ]]; then
1376+
elif [[ ${1-} == -a ]]; then
13771377
ifconfig || ip -c=never link show up || ip link show up
13781378
else
13791379
ifconfig -a || ip -c=never link show || ip link show
@@ -2226,7 +2226,7 @@ _cd()
22262226

22272227
# Use standard dir completion if no CDPATH or parameter starts with /,
22282228
# ./ or ../
2229-
if [[ ! ${CDPATH:-} || $cur == ?(.)?(.)/* ]]; then
2229+
if [[ ! ${CDPATH-} || $cur == ?(.)?(.)/* ]]; then
22302230
_filedir -d
22312231
return
22322232
fi
@@ -2414,7 +2414,7 @@ complete -F _comp_root_command fakeroot gksu gksudo kdesudo really
24142414
# Return true if the completion should be treated as running as root
24152415
_complete_as_root()
24162416
{
2417-
[[ $EUID -eq 0 || ${root_command:-} ]]
2417+
[[ $EUID -eq 0 || ${root_command-} ]]
24182418
}
24192419

24202420
_longopt()

completions/cvs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
_cvs_entries()
44
{
55
local prefix=${cur%/*}/ IFS=$'\n'
6-
[[ -e ${prefix:-}CVS/Entries ]] || prefix=""
7-
entries=($(cut -d/ -f2 -s ${prefix:-}CVS/Entries 2>/dev/null))
6+
[[ -e ${prefix-}CVS/Entries ]] || prefix=""
7+
entries=($(cut -d/ -f2 -s ${prefix-}CVS/Entries 2>/dev/null))
88
if [[ $entries ]]; then
9-
entries=("${entries[@]/#/${prefix:-}}")
9+
entries=("${entries[@]/#/${prefix-}}")
1010
compopt -o filenames
1111
fi
1212
}

completions/hcitool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
_bluetooth_addresses()
44
{
5-
if [[ ${COMP_BLUETOOTH_SCAN:-} ]]; then
5+
if [[ ${COMP_BLUETOOTH_SCAN-} ]]; then
66
COMPREPLY+=($(compgen -W "$(hcitool scan |
77
awk '/^\t/{print $1}')" -- "$cur"))
88
fi

completions/ipmitool

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ _ipmitool()
8686

8787
shell) ;;
8888

89-
\
90-
exec)
89+
exec)
9190
_filedir
9291
;;
9392

completions/pkgadd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _pkgadd()
4444
local -a tmplist
4545
for filedir in $(/bin/ls -1 $device); do
4646
if [[ -d "$device/$filedir" && -f "$device/$filedir/pkginfo" ]]; then
47-
tmplist+=(${tmplist[@]:-} "$filedir")
47+
tmplist+=(${tmplist[@]-} "$filedir")
4848
fi
4949
done
5050
pkginst_list="${tmplist[*]}"

completions/smbclient

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ _samba_resolve_order()
77

88
_samba_domains()
99
{
10-
if [[ ${COMP_SAMBA_SCAN:-} ]]; then
10+
if [[ ${COMP_SAMBA_SCAN-} ]]; then
1111
COMPREPLY=($(compgen -W '$(smbtree -N -D)' -- "$cur"))
1212
fi
1313
}
1414

1515
_samba_hosts()
1616
{
17-
if [[ ${COMP_SAMBA_SCAN:-} ]]; then
17+
if [[ ${COMP_SAMBA_SCAN-} ]]; then
1818
COMPREPLY=($(compgen -W "$(
1919
smbtree -N -S |
2020
command sed -ne 's/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p'

0 commit comments

Comments
 (0)