Tar command does not suit Openbsd: tar zxf instead of tar -zxf
Hello,
I started the command
# rake31 build:server
And got this error
tar -zxf /home/user/stork/tools/golang/goswagger.tar.gz -C /home/user/stork/tools/golang/goswagger-sources --strip-components=1
tar: unknown option -- -
usage: tar {crtux}[014578befHhjLmNOoPpqsvwXZz]
[blocking-factor | archive | replstr] [-C directory] [-I file]
[file ...]
tar {-crtux} [-014578eHhjLmNOoPpqvwXZz] [-b blocking-factor]
[-C directory] [-f archive] [-I file] [-s replstr] [file ...]
rake aborted!
Command failed with status (1): [tar -zxf /home/user/stork/tools/golang/g...]
On openbsd the dash is not necessary. Also the --strip-components option doesn't exist.
Could you make a if statement (if openbsd then tar zxf ...) to handle this problem ?
Regards