Skip to content

basename: missing operand when launching scope when weavedns is running #137

@rade

Description

@rade
$ weave launch
476e00691ca1a5d9423f03377f0b18527478aff716e1ff867c70cec6724a8c17
$ weave launch-dns 10.2.0.1/24
e572552f539cd417d10e7c656b4854d65a752921498b27a733e83c65bcdff81a
$ ./scope launch
basename: missing operand
Try 'basename --help' for more information.
73f80066456faeb694ff119fa1de4dd3604f7b731d3fd8bb65a05e0a46cb96a1

This is with version 2e8df4a, built according to the instructions.

tracing the exeuction with sh -x produces

...
+ dns_running
+ docker inspect --format={{.State.Running}} weavedns
+ status=true
+ [ true = true ]
+ return 0
+ + xargs -n1 basename
find /sys/class/net -name eth*
+ grep inet
+ + xargsgrep echo
 -oE [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
+ + awkxargs { print $2 } -n1 ip
 addrbasename: missing operand
Try 'basename --help' for more information.
 show
...

Looking at this and the code, I think the issue is that the script doesn't cope with my machine not having an eth* interface.

Metadata

Metadata

Assignees

Labels

bugBroken end user or developer functionality; not working as the developers intended it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions