diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-10 14:14:33 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-10 14:14:33 +0100 |
commit | 3bdc311b3623e12713420dd059970b61c3b17826 (patch) | |
tree | 0ddaeb607ce4848edcd848e94d223992fd856963 /src/core/libs/lib-pacman.sh | |
parent | 2b0d36b249a7d3c0daefef18468c052b969c61fd (diff) |
sed fix for pacman repo list
Diffstat (limited to 'src/core/libs/lib-pacman.sh')
-rw-r--r-- | src/core/libs/lib-pacman.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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' } |