summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2018-08-05 11:38:47 +0200
committerThomas Monjalon <thomas@monjalon.net>2018-08-09 18:12:22 +0200
commit5e45e7f08cd7171bb194044fd6e3125907329997 (patch)
tree73d58f8473d5f872bbad50ae24c32f77ad053437 /devtools
parent2da7f0146e47833215e68f2c658b4275b8d609fc (diff)
downloaddpdk-5e45e7f08cd7171bb194044fd6e3125907329997.zip
dpdk-5e45e7f08cd7171bb194044fd6e3125907329997.tar.gz
dpdk-5e45e7f08cd7171bb194044fd6e3125907329997.tar.xz
devtools: fix symbol check for dash
The script check-symbol-change.sh was not running when /bin/sh redirects to dash. Fixes: 4bec48184e33 ("devtools: add checks for ABI symbol addition") Cc: nhorman@tuxdriver.com Reported-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Tested-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/check-symbol-change.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/devtools/check-symbol-change.sh b/devtools/check-symbol-change.sh
index 40b7207..daaf45e 100755
--- a/devtools/check-symbol-change.sh
+++ b/devtools/check-symbol-change.sh
@@ -4,8 +4,8 @@
build_map_changes()
{
- local fname=$1
- local mapdb=$2
+ local fname="$1"
+ local mapdb="$2"
cat "$fname" | awk '
# Initialize our variables
@@ -80,7 +80,7 @@ build_map_changes()
check_for_rule_violations()
{
- local mapdb=$1
+ local mapdb="$1"
local mname
local symname
local secname
@@ -89,10 +89,10 @@ check_for_rule_violations()
while read mname symname secname ar
do
- if [ "$ar" == "add" ]
+ if [ "$ar" = "add" ]
then
- if [ "$secname" == "unknown" ]
+ if [ "$secname" = "unknown" ]
then
# Just inform the user of this occurrence, but
# don't flag it as an error