goldilocks.js/installer/get.sh

21 lines
548 B
Bash
Raw Permalink Normal View History

2017-11-07 20:41:10 +00:00
set -e
set -u
my_name=goldilocks
# TODO provide an option to supply my_ver and my_tmp
my_ver=master
my_tmp=$(mktemp -d)
mkdir -p $my_tmp/opt/$my_name/lib/node_modules/$my_name
2017-12-11 22:03:22 +00:00
git clone https://git.coolaj86.com/coolaj86/goldilocks.js.git $my_tmp/opt/$my_name/lib/node_modules/$my_name
2017-11-07 20:41:10 +00:00
echo "Installing to $my_tmp (will be moved after install)"
pushd $my_tmp/opt/$my_name/lib/node_modules/$my_name
git checkout $my_ver
2017-11-07 20:55:12 +00:00
source ./installer/install.sh
2017-11-07 20:41:10 +00:00
popd
echo "Installation successful, now cleaning up $my_tmp ..."
rm -rf $my_tmp
echo "Done"