Skip to content

Commit f722a8b

Browse files
committed
fix(xdg-mime): actually cd to all candidate mime dirs
1 parent 097a402 commit f722a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/xdg-mime

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ _xdg_mime_mimetype()
44
{
55
local d i
66
for d in /usr/share/mime /usr/local/share/mime; do
7-
command cd /usr/share/mime 2>/dev/null || continue
7+
command cd $d 2>/dev/null || continue
88
trap "command cd - &>/dev/null" RETURN
99
_filedir xml
1010
for i in ${!COMPREPLY[*]}; do

0 commit comments

Comments
 (0)