From 7c58fb80d94113f4c0d0f5c3b32442b190a191da Mon Sep 17 00:00:00 2001 From: Justin Watts Date: Mon, 1 Jul 2019 21:59:38 -0400 Subject: [PATCH] Build New Version --- strapped | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strapped b/strapped index 53277a2..ed5f79b 100644 --- a/strapped +++ b/strapped @@ -14,7 +14,7 @@ url_regex='^(https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/% # shellcheck disable=SC2034 YSH_LIB=1; # shellcheck disable=SC1091 -source /dev/stdin <<< "$(curl -s https://raw.githubusercontent.com/azohra/yaml.sh/v0.1.4/ysh)" +source /dev/stdin <<< "$(curl -s https://raw.githubusercontent.com/azohra/yaml.sh/v0.2.0/ysh)" pretty_print () { local msg_type=${1} @@ -45,7 +45,7 @@ run_command() { parse_config() { # Check for YML - if [[ "${yml_location}" =~ ${url_regex} ]]; then config=$(curl -s "${yml_location}" | ysh ); else config=$(ysh -f "${yml_location}"); fi + if [[ "${yml_location}" =~ ${url_regex} ]]; then config=$(curl -s -L "${yml_location}" | ysh ); else config=$(ysh -f "${yml_location}"); fi if [ ! "${config}" ]; then pretty_print ":announce:" "Strapped::Config not found" && exit 2;else pretty_print ":announce:" "Config::${yml_location}"; fi }