From 4ab486dd2c8950869eca7f32910c4410edfb7fdf Mon Sep 17 00:00:00 2001 From: "aiyion.prime" Date: Wed, 22 Jun 2022 14:56:12 +0200 Subject: [PATCH] run-build.sh, gluon_bat0.sh: add double quotes to prevent word splitting and globbing --- contrib/actions/run-build.sh | 2 +- .../gluon-mesh-batman-adv/files/lib/netifd/proto/gluon_bat0.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/actions/run-build.sh b/contrib/actions/run-build.sh index c3a27977..cdff1e50 100755 --- a/contrib/actions/run-build.sh +++ b/contrib/actions/run-build.sh @@ -6,7 +6,7 @@ export BROKEN=1 export GLUON_AUTOREMOVE=1 export GLUON_DEPRECATED=1 export GLUON_SITEDIR="contrib/ci/minimal-site" -export GLUON_TARGET=$1 +export GLUON_TARGET="$1" export BUILD_LOG=1 make update diff --git a/package/gluon-mesh-batman-adv/files/lib/netifd/proto/gluon_bat0.sh b/package/gluon-mesh-batman-adv/files/lib/netifd/proto/gluon_bat0.sh index 737cac62..91ea0d35 100755 --- a/package/gluon-mesh-batman-adv/files/lib/netifd/proto/gluon_bat0.sh +++ b/package/gluon-mesh-batman-adv/files/lib/netifd/proto/gluon_bat0.sh @@ -37,7 +37,7 @@ proto_gluon_bat0_renew() { proto_gluon_bat0_setup() { local config="$1" - local routing_algo=$(lookup_site 'mesh.batman_adv.routing_algo' 'BATMAN_IV') + local routing_algo="$(lookup_site 'mesh.batman_adv.routing_algo' 'BATMAN_IV')" local gw_mode json_get_vars gw_mode