summaryrefslogtreecommitdiffstats
path: root/urpmi.bash-completion
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-13 08:06:11 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-01-13 08:06:11 +0000
commite6a7590eb96b76edd41bfadb37865e3b4629abcd (patch)
tree9d5f13666557c82fad86b42fb046d1afe507b906 /urpmi.bash-completion
parent18e532fc8a3f4a79901db9696348c10c9620f864 (diff)
downloadurpmi-e6a7590eb96b76edd41bfadb37865e3b4629abcd.tar
urpmi-e6a7590eb96b76edd41bfadb37865e3b4629abcd.tar.gz
urpmi-e6a7590eb96b76edd41bfadb37865e3b4629abcd.tar.bz2
urpmi-e6a7590eb96b76edd41bfadb37865e3b4629abcd.tar.xz
urpmi-e6a7590eb96b76edd41bfadb37865e3b4629abcd.zip
Fix bash completion for media with passwords
Diffstat (limited to 'urpmi.bash-completion')
-rw-r--r--urpmi.bash-completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion
index ab4f6b53..4687ad87 100644
--- a/urpmi.bash-completion
+++ b/urpmi.bash-completion
@@ -5,7 +5,7 @@
# utility functions
_urpmi_get_medias()
{
- medias=( $( sed -ne 's/^\(.\+\) \+[^ ]\+ \+{/\1/p' /etc/urpmi/urpmi.cfg 2>/dev/null | sed -e 's/(/\\(/g' -e 's/)/\\)/g' -e 's/ /\\ /g' ) )
+ medias=( $( sed -ne 's/^\(.\+\) \+[^{]\+{$/\1/p' /etc/urpmi/urpmi.cfg 2>/dev/null | sed -e 's/(/\\(/g' -e 's/)/\\)/g' -e 's/ /\\ /g' ) )
}
_urpmi_medias()