From 48351fed79181d2f457430f4d275ba1767dc9676 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Mon, 20 Feb 2017 11:33:55 -0800 Subject: [PATCH] Remove trailing newline from curl'd variable. Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index bdc1cf25..059f8f10 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1164,7 +1164,7 @@ FTLinstall() { echo "::: failed (error in getting latest release location from GitHub)" return 1 fi - if curl -sSL --fail "https://github.com/pi-hole/FTL/releases/download/${latesttag}/${binary}" -o "/tmp/pihole-FTL"; then + if curl -sSL --fail "https://github.com/pi-hole/FTL/releases/download/${latesttag%$'\r'}/${binary}" -o "/tmp/pihole-FTL"; then # Check if we just downloaded text, or a binary file. if ! grep -qI '.' /tmp/pihole-FTL; then echo "::: done"