Created
June 30, 2012 19:04
-
-
Save leods92/3025118 to your computer and use it in GitHub Desktop.
Shell script to pack git repository in a tarball and place it in Dropbox folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GIT_REPO="/path/to/git/repo" | |
cd $GIT_REPO | |
git archive --format=tar --prefix=package/ master | gzip > ~/Dropbox/repo.tar.gz && open ~/Dropbox | |
echo "Now generate the Dropbox link and add it to package.json." |
For any wanderers stumbling across this - didn't initially work for me.
npm http GET https://www.dropbox.com/s/xxx/flat-ui-pro.tar.gz
npm ERR! fetch failed https://www.dropbox.com/s/xxx/flat-ui-pro.tar.gz
npm info retry will retry, error on last attempt: Error: Hostname/IP doesn't match certificate's altnames
Fixed above error by running npm config set strict-ssl false
Also make sure to copy the link from the Download File
button, not the url of the page. I made that mistake.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome!