TheThingsArchive / api

Generated code for accessing The Things Network v2 API
MIT License
12 stars 8 forks source link

Sed error #11

Closed rvolosatovs closed 7 years ago

rvolosatovs commented 7 years ago
$ make protos.go  
sed -i '' -e 's/\.AppId/\.AppID/g' -e 's/\.DevId/\.DevID/g' -e 's/\.AppEui/\.AppEUI/g' -e 's/\.DevEui/\.DevEUI/g' -e 's/\.Id/\.ID/g' ./discovery/discovery.pb.gw.go ./handler/handler.pb.gw.go
sed: can't read : No such file or directory

using

$ sed --version
sed (GNU sed) 4.4
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenlason, Tom Lord, Ken Pizzini,
and Paolo Bonzini.
GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.

the sed -i '' is causing this - what's the purpose of that @htdvisser ? It probably should be sed -i'', which would mean, that no backups should be made(the default, so not really required)

This weird argument is present in all sed invokations, btw