Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-10-25 11:03:43 -0400
committerDave Reisner <dreisner@archlinux.org>2014-10-25 11:36:21 -0400
commitf743f58682d47fba5366c910d6179851e1f9483e (patch)
treeefcee8f279b944d720b7b103877418b0e840e8c1
parent98166e3454139918304b3e0a314e41628dd0c61c (diff)
find-libdeps: cleanup some quoting/array concerns
-rw-r--r--find-libdeps.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/find-libdeps.in b/find-libdeps.in
index c9b451e..b40f794 100644
--- a/find-libdeps.in
+++ b/find-libdeps.in
@@ -32,11 +32,11 @@ else
setup_workdir
case ${script_mode} in
- deps) bsdtar -C $WORKDIR -xf "$1";;
- provides) bsdtar -C $WORKDIR -xf "$1" --include="*.so*";;
+ deps) bsdtar -C "$WORKDIR" -xf "$1";;
+ provides) bsdtar -C "$WORKDIR" -xf "$1" --include="*.so*";;
esac
- pushd $WORKDIR >/dev/null
+ pushd "$WORKDIR" >/dev/null
fi
process_sofile() {
@@ -50,16 +50,16 @@ process_sofile() {
if ! in_array "${soname}=${soversion}-${soarch}" ${soobjects[@]}; then
# libfoo.so=1-64
echo "${soname}=${soversion}-${soarch}"
- soobjects=(${soobjects[@]} "${soname}=${soversion}-${soarch}")
+ soobjects+=("${soname}=${soversion}-${soarch}")
fi
}
case $script_mode in
- deps) find_args="-perm -u+x";;
- provides) find_args="-name *.so*";;
+ deps) find_args=(-perm -u+x);;
+ provides) find_args=(-name '*.so*');;
esac
-find . -type f $find_args | while read filename; do
+find . -type f "${find_args[@]}" | while read filename; do
if [[ $script_mode = "provides" ]]; then
# ignore if we don't have a shared object
if ! LC_ALL=C readelf -h "$filename" 2>/dev/null | grep -q '.*Type:.*DYN (Shared object file).*'; then