#!/usr/bin/env zsh

set -e
set -u

if [[ "$1" == 'update' ]]; then
  cmd='update'
else
  cmd='install'
fi

echo "\n$ bower ${cmd}\n"
$(npm bin -g)/bower $cmd

echo "\n$ bundle ${cmd}\n"
$(rbenv which bundle) $cmd

echo '\n$ curate -v\n'
sudo -S $(rbenv which bundle) exec curate -v

echo '\n$ ./units.zsh\n'
./units.zsh

exit

#!/usr/bin/env zsh

set -e
set -u

cmd="${1:=install}"

if [[ "$cmd" == 'update' ]]; then
  cmd='update'
else
  cmd='install'
fi

echo "\n$ bower ${cmd}\n"
$(npm bin -g)/bower $cmd

echo "\n$ bundle ${cmd}\n"
$(rbenv which bundle) $cmd

echo '\n$ curate -v\n'
sudo -S $(rbenv which bundle) exec curate -v

echo '\n$ ./units.zsh\n'
./units.zsh

exit

Fix parameter not set error
Fix parameter not set error
