Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/wtf10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/wtf b/bin/wtf
index 5eca1c7..2a59aab 100755
--- a/bin/wtf
+++ b/bin/wtf
@@ -16,22 +16,22 @@ base_dir=$(
readlink -f "${0%/*}/.."
)
-case $1 in
+search="$*"
+
+case ${search%% *} in
'i486')
arch='i486'
- shift
+ search="${search#* }"
;;
'i686')
arch='i686'
- shift
+ search="${search#* }"
;;
*)
arch='i686'
;;
esac
-search="$*"
-
pkgfile -w \
-C "${base_dir}/misc/pacman-${arch}.conf" \
-D "${base_dir}/work/pkgfile-${arch}.cache" \