We specify `set -o pipefail`, which is not implemented in dash
or a number of other shells. The F-Droid builder is defaulting
to a shell which does not:
```
./version/tailscale-version.sh: 10: set: Illegal option -o pipefail
```
Updates https://github.com/tailscale/tailscale/issues/2536
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
The strategy is to ask `go list` for the tailscale.com module version, and then
use that as a tag in a `git ls-remote` query.
If the module version is a pseudo-version such as
"v1.1.1-0.20201030135043-eab6e9ea4e45", use the abbreviated commit directly
(git ls-remote only list remote refs, not commits).
Fixestailscale/tailscale#883
Signed-off-by: Elias Naur <mail@eliasnaur.com>