diff --git a/recipes/aws b/recipes/aws new file mode 100644 index 0000000..b6771ef --- /dev/null +++ b/recipes/aws @@ -0,0 +1,11 @@ +#!/bin/bash +# Description: AWS command-line utilities +set -e + +_recipe brew +_recipe python + +_pip awscli + +_brew_tap lucagrulla/tap +_brew cw diff --git a/recipes/python b/recipes/python index ea1edee..dd05a97 100644 --- a/recipes/python +++ b/recipes/python @@ -7,6 +7,15 @@ __PYTHON_VERSION=3.7.4 _recipe _path _recipe git +function _pip { + local pkg=$1 + if ! pip show $pkg >/dev/null 2>&1; then + _run "[pip] Install $pkg" pip install $pkg + else + echo "[pip] $pkg is already installed, skiping." + fi +} + case $_PLATFORM in darwin) _recipe brew