Skip to content

Instantly share code, notes, and snippets.

@anelson
Last active April 16, 2017 01:54
Show Gist options
  • Save anelson/366c7aa381469893a5377d9f04710267 to your computer and use it in GitHub Desktop.
Save anelson/366c7aa381469893a5377d9f04710267 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Install chef-dk the arch way
TMPDIR=$HOME/temp # don't use mktemp here; the /tmp volume is usually too small on vagrant boxes
if [ ! "command -v chef" ]; then
mkdir -p $TMPDIR
cd $TMPDIR
curl -o chef-dk.tgz "https://aur.archlinux.org/cgit/aur.git/snapshot/chef-dk.tar.gz"
tar xvzf chef-dk.tgz
cd chef-dk
makepkg -si
rm -rf $TMPDIR
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment