scripts: Fix quoting to prevent unintended word splitting
This commit is contained in:
@@ -13,11 +13,11 @@ AXE_SHRINK=${AXE_DIR}/src/axe-shrink.py
|
||||
PATH=$PATH:${AXE_DIR}/src
|
||||
|
||||
grep '.*:.*#.*@' $1 > /tmp/clean-trace.txt
|
||||
$TO_AXE /tmp/clean-trace.txt > /tmp/trace.axe
|
||||
result=$($AXE check wmo /tmp/trace.axe)
|
||||
"$TO_AXE" /tmp/clean-trace.txt > /tmp/trace.axe
|
||||
result=$("$AXE" check wmo /tmp/trace.axe)
|
||||
|
||||
if [ $result != "OK" ]; then
|
||||
$AXE_SHRINK wmo /tmp/trace.axe
|
||||
if [ "$result" != OK ]; then
|
||||
"$AXE_SHRINK" wmo /tmp/trace.axe
|
||||
else
|
||||
echo "OK"
|
||||
echo OK
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user