Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-23 13:38:46 +0100
committerErich Eckner <git@eckner.net>2018-11-23 13:38:46 +0100
commit55f8db7d23c5e75e4b42be15fe6a363c19c7abee (patch)
tree44ceb90fcf97ee263784ed6cbc41222a00b0e076
parent2b8d4378918eb6dfa4b31f3ab34ff5e239aa6879 (diff)
bin/wtf: also correctly separate $arch if everything is concatenated in "$1"
-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" \