Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--warning option don't exist on all versions of tar #257

Closed
REBELinBLUE opened this issue Aug 2, 2016 · 0 comments
Closed

--warning option don't exist on all versions of tar #257

REBELinBLUE opened this issue Aug 2, 2016 · 0 comments

Comments

@REBELinBLUE
Copy link
Owner

REBELinBLUE commented Aug 2, 2016

Reported via Email

OS X and BSD's tar command doesn't have the --warning=no-timestamp option used at https://github.com/REBELinBLUE/deployer/blob/master/resources/scripts/deploy/steps/CreateNewRelease.sh#L18

Something like the following may help

if [ "$(uname -s)" = 'Linux' ]; then
   tar --warning=no-timestamp --gunzip --verbose --extract --file={{
remote_archive }} --directory={{ release_path }}
else

   # BSD: pkg install gtar / OSX: brew install gnu-tar
   # gtar --warning=no-timestamp --gunzip --verbose --extract
--file={{ remote_archive }} --directory={{ release_path }}

   tar --gunzip --verbose --extract --file={{ remote_archive }}
--directory={{ release_path }}
fi
@REBELinBLUE REBELinBLUE changed the title Options don't exist on all versions of tag Options don't exist on all versions of tar Aug 3, 2016
REBELinBLUE added a commit that referenced this issue Aug 6, 2016
* master: (60 commits)
  Updated CHANGELOG
  Fixes #257 - Touch files when extracting to prevent warnings about timestamps
  Update README.md
  Added a note about a common error
  Updated ioredis
  Updated google2fa library
  Fixes #254
  Fixes #256 - Git tag names causing a fatal error if they are not valid version string
  Fixed gulpfile so that assets don't get removed before they are versioned
  Updated dependencies
  Updated dependencies
  Priority WS for optimal transport browser (#250)
  Ignore suggestions when installing Composer deps (#252)
  Fix style issue
  Revert "[Snyk Alert] Fix for 2 vulnerable dependency paths" (#245)
  fix: package.json & .snyk to reduce vulnerabilities (#244)
  Handling the timeout checking for an update on github, i.e. when I am at work behind a proxy
  Added a check to the updatre script to ensure npm install has been run
  Update dialog.blade.php (#239)
  Silence PHPMD
  ...
@REBELinBLUE REBELinBLUE changed the title Options don't exist on all versions of tar --warning option don't exist on all versions of tar Aug 6, 2016
REBELinBLUE added a commit that referenced this issue Aug 7, 2016
* master:
  Updated CHANGELOG
  Updated CHANGELOG
  Updated CHANGELOG
  Updated CHANGELOG
  Fixed link
  Updated CHANGELOG
  Fixes #257 - Touch files when extracting to prevent warnings about timestamps
  Update README.md
  Added a note about a common error

Conflicts:
	CHANGELOG.md
REBELinBLUE added a commit that referenced this issue Aug 21, 2016
* master: (33 commits)
  Updated version
  Updated CHANGELOG
  Updated dependencies
  Fixes #258 - Fatal error in PHP 5 when git tags are not valid version numbers
  Fixing version
  Updated CHANGELOG
  Fix the installer to correctly check for either "node" or "nodejs"
  Updated dependencies
  Delete .travis.yml
  Create .travis.yml
  Updated CHANGELOG
  Updated CHANGELOG
  Updated CHANGELOG
  Updated CHANGELOG
  Fixed link
  Updated CHANGELOG
  Fixes #257 - Touch files when extracting to prevent warnings about timestamps
  Update README.md
  Added a note about a common error
  Updated ioredis
  ...

Conflicts:
	composer.json
	composer.lock
	gulpfile.js
	package.json
	resources/assets/js/app.js
	socket.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant