From a4776e12c64fc6f9c176754ce23da2459236d396 Mon Sep 17 00:00:00 2001 From: Marvin Lehmann Date: Sat, 21 Oct 2017 11:52:25 +0200 Subject: [PATCH] Changed curl to ${curlpath} --- lgsm/functions/alert_mailgun.sh | 2 +- lgsm/functions/info_distro.sh | 2 +- lgsm/functions/update_factorio.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lgsm/functions/alert_mailgun.sh b/lgsm/functions/alert_mailgun.sh index b3f17d6b1..8f336687b 100644 --- a/lgsm/functions/alert_mailgun.sh +++ b/lgsm/functions/alert_mailgun.sh @@ -11,7 +11,7 @@ local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" fn_print_dots "Sending Email alert: Mailgun: ${email}" sleep 0.5 -mailgunsend=$(curl -s --user "api:${mailguntoken}" \ +mailgunsend=$(${curlpath} -s --user "api:${mailguntoken}" \ -F from="LinuxGSM <${mailgunemailfrom}>" \ -F to="LinuxGSM Admin <${mailgunemail}>" \ -F subject="${alertemoji} ${alertsubject} ${alertemoji}" \ diff --git a/lgsm/functions/info_distro.sh b/lgsm/functions/info_distro.sh index d23f58f36..661123a80 100644 --- a/lgsm/functions/info_distro.sh +++ b/lgsm/functions/info_distro.sh @@ -136,5 +136,5 @@ fi # External IP address if [ -z "${extip}" ];then - extip=$(curl -m 3 ifconfig.co 2>/dev/null) + extip=$(${curlpath} -m 3 ifconfig.co 2>/dev/null) fi \ No newline at end of file diff --git a/lgsm/functions/update_factorio.sh b/lgsm/functions/update_factorio.sh index 5948cedd3..9ff702479 100644 --- a/lgsm/functions/update_factorio.sh +++ b/lgsm/functions/update_factorio.sh @@ -76,7 +76,7 @@ fn_update_factorio_arch(){ fn_update_factorio_availablebuild(){ # Gets latest build info. - availablebuild=$(curl -s https://www.factorio.com/download-headless/"${branch}" | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)') + availablebuild=$(${curlpath} -s https://www.factorio.com/download-headless/"${branch}" | grep 'headless/linux64' | head -n 1 | grep -oP '(?<=get-download/).*?(?=/)') sleep 1 # Checks if availablebuild variable has been set