summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-08-06 09:13:55 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-16 16:07:02 +0200
commit1be984b4f03effdaaf64fb4fca2224c42d75b469 (patch)
tree7356de0aed24dcf109845b3ba218e4601ce2fd94
parent3eaf3e941ae3358bdbbe0e90a4c9de9fe274586b (diff)
Fix: Assign and export variable seperately
This fixes shellcheck SC2155 Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rwxr-xr-xci/ci_smoke_test_c8y.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ci/ci_smoke_test_c8y.sh b/ci/ci_smoke_test_c8y.sh
index 814537f5..dc7047ae 100755
--- a/ci/ci_smoke_test_c8y.sh
+++ b/ci/ci_smoke_test_c8y.sh
@@ -77,7 +77,8 @@ PATH=$PATH:/usr/sbin
python3 -m venv ~/env-c8y-api
source ~/env-c8y-api/bin/activate
pip3 install c8y-api retry-decorator
-export C8YDEVICEID=$(python3 ./ci/find_device_id.py --tenant "$C8YTENANT" --user "$C8YUSERNAME" --device "$C8YDEVICE" --url "$C8YURL")
+C8YDEVICEID=$(python3 ./ci/find_device_id.py --tenant "$C8YTENANT" --user "$C8YUSERNAME" --device "$C8YDEVICE" --url "$C8YURL")
+export C8YDEVICEID
# after calling the script, the ID should be a numeric value
if [[ "$C8YDEVICEID" =~ ^[0-9]+$ ]]; then