MrJadaml / mac-maker

Build script fo yo macs
Other
7 stars 2 forks source link

Make start-up command curl #1

Open MrJadaml opened 7 years ago

MrJadaml commented 7 years ago

A fresh boot does not yet have x-code command line tools, therefore git clone will not work. Instead use something like sh -c "curl -Lok https://github-repo-url 'dotfiles'"

May need -Lok flags

MrJadaml commented 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:

MrJadaml commented 7 years ago

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. ¯\_(ツ)_/¯