# Single argument should be 'dev' or 'archive'. Default is 'archive'.

ENVIRONMENT=archive
if [ -n $1 ]; then
    ENVIRONMENT=$1
fi

pushd ../
tar --exclude=".git" -zcvf f5-cloud-libs.tar.gz f5-cloud-libs
azure storage blob upload --quiet f5-cloud-libs.tar.gz $ENVIRONMENT f5-cloud-libs.tar.gz
azure storage blob upload --quiet f5-cloud-libs/scripts/azure/runScripts.js $ENVIRONMENT runScripts.js
azure storage blob upload --quiet f5-cloud-libs/scripts/deployHttp.sh $ENVIRONMENT deployHttp.sh
popd

#!/bin/bash

# Single argument should be 'dev' or 'archive'. Default is 'archive'.

ENVIRONMENT=archive
if [ -n "$1" ]; then
    ENVIRONMENT=$1
fi

echo GOT ENVIRONMENT $ENVIRONMENT
pushd ../
tar --exclude=".git" -zcvf f5-cloud-libs.tar.gz f5-cloud-libs
azure storage blob upload --quiet f5-cloud-libs.tar.gz $ENVIRONMENT f5-cloud-libs.tar.gz
azure storage blob upload --quiet f5-cloud-libs/scripts/azure/runScripts.js $ENVIRONMENT runScripts.js
azure storage blob upload --quiet f5-cloud-libs/scripts/deployHttp.sh $ENVIRONMENT deployHttp.sh
popd

Fix check for unset var
Fix check for unset var
