#!/usr/bin/env bash

set -x

# Make sure there is `~/bin`-folder.
[[ -d ~/bin ]] || mkdir -p ~/bin

# download `rebar3` and make it executable
if [[ ! -f ~/bin/rebar3 ]]; then
    wget -O ~/bin/rebar3 https://s3.amazonaws.com/rebar3/rebar3
    chmod a+x ~/bin/rebar3
fi

if [[ ! -f ~/bin/configlet ]]; then
    ./bin/fetch-configlet
    cp ./bin/configlet ~/bin/configlet
fi


#!/usr/bin/env bash

set -x

# Make sure there is `~/bin`-folder.
[[ -d ~/bin ]] || mkdir -p ~/bin

# download `rebar3` and make it executable
if [[ ! -f ~/bin/rebar3 ]]; then
    wget -O ~/bin/rebar3 https://s3.amazonaws.com/rebar3/rebar3
    chmod a+x ~/bin/rebar3
fi

# fetch configlet and move it into $PATH
./bin/fetch-configlet
cp ./bin/configlet ~/bin/configlet

Update configlet on each run
Update configlet on each run
