From: Petr Vorel <petr.vorel@gmail.com>
To: netdev@vger.kernel.org
Cc: Petr Vorel <petr.vorel@gmail.com>,
Stephen Hemminger <stephen@networkplumber.org>
Subject: [PATCH iproute2 4/7] configure: Remove non-posix shell expansion
Date: Sat, 22 Sep 2018 23:24:48 +0200 [thread overview]
Message-ID: <20180922212451.327-5-petr.vorel@gmail.com> (raw)
In-Reply-To: <20180922212451.327-1-petr.vorel@gmail.com>
+ change shebang to /bin/sh
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
configure | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 34325f99..8f4a7f1e 100755
--- a/configure
+++ b/configure
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# This is not an autoconf generated configure
#
@@ -180,7 +180,8 @@ check_ipt_lib_dir()
for dir in /lib /usr/lib /usr/local/lib
do
- for file in $dir/{xtables,iptables}/lib*t_*so ; do
+ for file in "xtables" "iptables"; do
+ file="$dir/$file/lib*t_*so"
if [ -f $file ]; then
echo ${file%/*}
echo "IPT_LIB_DIR:=${file%/*}" >> $CONFIG
--
2.19.0.rc2
next prev parent reply other threads:[~2018-09-23 3:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-22 21:24 [PATCH iproute2 0/7] Minor shell code cleanup Petr Vorel
2018-09-22 21:24 ` [PATCH iproute2 1/7] man: rtpr: Rename s/bash/shell/ Petr Vorel
2018-09-22 21:24 ` [PATCH iproute2 2/7] tests: Use /bin/sh shebang Petr Vorel
2018-09-22 21:24 ` [PATCH iproute2 3/7] configure: Remove unused function check_prog() Petr Vorel
2018-09-22 21:24 ` Petr Vorel [this message]
2018-09-22 21:24 ` [PATCH iproute2 5/7] configure: Code cleanup Petr Vorel
2018-09-22 21:24 ` [PATCH iproute2 6/7] examples: Remove dhcp-client-script Petr Vorel
2018-09-22 21:24 ` [PATCH iproute2 7/7] examples: Remove cbq.init-v0.7.3 Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180922212451.327-5-petr.vorel@gmail.com \
--to=petr.vorel@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=stephen@networkplumber.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).