#!/usr/bin/env bash

# This file managed by Chef. 

if curl -o <%= node['snowflake']['cli']['bash_installer_file'] %> <%= node['snowflake']['cli']['source_url'] %>; then
  SNOWSQL_DEST=<%= node['snowflake']['cli']['destination'] %> SNOWSQL_LOGIN_SHELL=<%= node['snowflake']['cli']['shell_init_file'] %> bash <%= node['snowflake']['cli']['bash_installer_file'] %>
else
  echo "Downloading <%= node['snowflake']['cli']['bash_installer_file'] %> failed " && exit 1
fi
