From 3bdc311b3623e12713420dd059970b61c3b17826 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 10 Nov 2008 14:14:33 +0100 Subject: sed fix for pacman repo list --- src/core/libs/lib-pacman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/libs/lib-pacman.sh b/src/core/libs/lib-pacman.sh index ab63540..8874fb0 100644 --- a/src/core/libs/lib-pacman.sh +++ b/src/core/libs/lib-pacman.sh @@ -97,7 +97,7 @@ list_pacman_repos () [ "$1" != runtime -a "$1" != target ] && die_error "list_pacman_repos needs target/runtime argument" [ "$1" = target ] && conf=/tmp/pacman.conf [ "$1" = runtime ] && conf=/etc/pacman.conf - grep '\[.*\]' $conf | grep -v options | sed 's/[//' | sed 's/]//' + grep '\[.*\]' $conf | grep -v options | sed 's/\[//g' | sed 's/\]//g' } -- cgit v1.2.3-54-g00ecf