Skip to content

Instantly share code, notes, and snippets.

@chmouel
Created December 31, 2014 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chmouel/2c8b916d67d13d42bf71 to your computer and use it in GitHub Desktop.
Save chmouel/2c8b916d67d13d42bf71 to your computer and use it in GitHub Desktop.
#!/bin/bash
# script run inside the container
rpmbuild -ba rpmbuild/SPECS/project.spec || exit 1
[[ -d /data ]] || exit 0
sudo rm -rf /data/output
sudo cp -a rpmbuild/RPMS/noarch /data/output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment