Open MrJadaml opened 7 years ago
This accomplishes what I want, but holy gross... 😵
curl -Lk https://api.github.com/repos/mrjadaml/mac-maker/tarball --create-dirs -o ~/projects/dotfiles.tar.gz && tar -zxvf ~/projects/dotfiles.tar.gz -C ~/projects/ -s /MrJadaml-mac-maker-b83e4c7/dotfiles/
This command does the following:
curl
-Lk
projects
directory: --create-dirs
projects
directory: -o
&&
projects
dir in verbose mode: -zxvf
projects
directory before adding files: -C
dotfiles
rather than default MrJadaml-mac-maker-b83e4c7
: s/new/old
Since I plan to use this build script on a freshly formatted machine, I like that the above command creates the projects directory for me. Though it may be more portable to remove the projects
dir portion of the command. Then just guide the user (or myself) to run the command where they want to install the repo and manually create any directories. ¯\_(ツ)_/¯
A fresh boot does not yet have x-code command line tools, therefore
git clone
will not work. Instead use something likesh -c "curl -Lok https://github-repo-url 'dotfiles'"
May need
-Lok
flags