File tree Expand file tree Collapse file tree 7 files changed +14
-15
lines changed Expand file tree Collapse file tree 7 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -86,8 +86,7 @@ _ipmitool()
8686
8787 shell) ;;
8888
89- \
90- exec)
89+ exec)
9190 _filedir
9291 ;;
9392
Original file line number Diff line number Diff 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[*]} "
Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments