Skip to content

Commit 5a300b2

Browse files
scopakinomyoga
andcommitted
fix(_umount.linux): fallout from naming changes
Co-authored-by: Koichi Murase <[email protected]>
1 parent f996832 commit 5a300b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

completions/_umount.linux

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _comp_cmd_umount__linux_fstab_unescape()
4545
# Reads a file from stdin in the linux fstab(5) format; as used by /etc/fstab
4646
# and /proc/mounts. With 1st arg -L, look for entries by label.
4747
# shellcheck disable=SC2120
48-
_comp_cmd__umount_linux_fstab()
48+
_comp_cmd_umount__linux_fstab()
4949
{
5050
COMPREPLY=()
5151

@@ -56,12 +56,12 @@ _comp_cmd__umount_linux_fstab()
5656
if [[ ${1-} == -L ]]; then
5757
local fs_label=${fs_spec/#LABEL=/}
5858
if [[ $fs_label != "$fs_spec" ]]; then
59-
__comp_cmd_umount__linux_fstab_unescape fs_label
59+
_comp_cmd_umount__linux_fstab_unescape fs_label
6060
COMPREPLY+=("$fs_label")
6161
fi
6262
else
63-
__comp_cmd_umount__linux_fstab_unescape fs_spec
64-
__comp_cmd_umount__linux_fstab_unescape fs_file
63+
_comp_cmd_umount__linux_fstab_unescape fs_spec
64+
_comp_cmd_umount__linux_fstab_unescape fs_file
6565
[[ $fs_spec == */* ]] && COMPREPLY+=("$fs_spec")
6666
[[ $fs_file == */* ]] && COMPREPLY+=("$fs_file")
6767
fi
@@ -131,7 +131,7 @@ _comp_cmd_umount()
131131
if [[ -r /proc/mounts ]]; then
132132
# Linux /proc/mounts is properly quoted. This is important when
133133
# unmounting usb devices with pretty names.
134-
_comp_cmd__umount_linux_fstab </proc/mounts
134+
_comp_cmd_umount__linux_fstab </proc/mounts
135135
else
136136
local IFS=$'\n'
137137
COMPREPLY=($(compgen -W '$(mount | cut -d" " -f 3)' -- "$cur"))

0 commit comments

Comments
 (0)