dedis / prifi

PriFi, a low-latency, local-area anonymous communication network.
https://prifi.net
GNU Affero General Public License v3.0
48 stars 11 forks source link

Install fails on go 1.10 #179

Closed jmayalag closed 6 years ago

jmayalag commented 6 years ago

prifi.sh install fails when go version is 1.10

jmayalag commented 6 years ago

The second capturing group is missing a *

GO_VER=$(go version 2>&1 | sed 's/.*version go\([[:digit:]]*\)\.\([[:digit:]]\)\(.*\)/\1\2/; 1q')

This should do it (while major version <= 9)

GO_VER=$(go version 2>&1 | sed 's/.*version go\([[:digit:]]*\)\.\([[:digit:]]*\)\(.*\)/\1\2/; 1q')
lbarman commented 6 years ago

Indeed ! Thanks for your feedback. Fixed aa7fb712f82fc86a24c80188374d8d86d42525a0