Skip to content

Commit

Permalink
fix: Handle unset AXIS_DEVICE_IP in remote-test.sh (#166)
Browse files Browse the repository at this point in the history
The previous implementation would fail if `AXIS_DEVICE_IP` was unset
thanks to the `set -u`.

`bin/remote-test.sh`:
- Treat an empty and an unset variable the same because prefixing a
  command with `AXIS_DEVICE_IP= `is a convenient way to temporarily
  force the second branch in the runner.
  • Loading branch information
JsGjKJzi authored Dec 19, 2024
1 parent 4224cf4 commit 5527728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/remote-test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -eu

if [ -n "${AXIS_DEVICE_IP}" ]; then
if [ ${AXIS_DEVICE_IP:-} ]; then
LOCAL_PATH="$1"
shift

Expand Down

0 comments on commit 5527728

Please sign in to comment.