Skip to content

Commit

Permalink
lava-worker: fix worker detection
Browse files Browse the repository at this point in the history
The sed command is incomplete, so the worker detection never work.
  • Loading branch information
montjoie committed Jan 23, 2023
1 parent 7f7ab2b commit 0190657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lava-slave/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ do
if [ $? -ne 0 ]; then
CURR_WORKER=""
else
CURR_WORKER=$(cat /tmp/current-worker | sed '^.* ,,')
CURR_WORKER=$(cat /tmp/current-worker | sed 's,^.* ,,')
fi
if [ ! -z "$CURR_WORKER" -a "$CURR_WORKER" != "$worker" ];then
echo "ERROR: $devicename already present on another worker $CURR_WORKER"
Expand Down

0 comments on commit 0190657

Please sign in to comment.