mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Remove trailing newline from curl'd variable.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
875a5d309d
commit
48351fed79
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue