From a07049cd10c57d0df4497e389dd5b08631a10049 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 13 Nov 2012 00:47:49 -0500 Subject: aur: use bash builtins instead of sed --- src/aur | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aur b/src/aur index 24d4317..f90a776 100755 --- a/src/aur +++ b/src/aur @@ -56,7 +56,7 @@ for _pkg in ${@}; do fi msg "Downloading $_pkg..." - wget -O - -q https://aur.archlinux.org/packages/$(echo $_pkg | sed "s/^../&\/&/")/$_pkg.tar.gz | \ + wget -O - -q https://aur.archlinux.org/packages/${_pkg:0:2}/${_pkg}/$_pkg.tar.gz | \ tar xzf - >/dev/null 2>&1 if [ $? -ne 0 ]; then -- cgit v1.2.3-54-g00ecf