mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Fix error when getting latest FTL tag
The headers containing the latest FTL tag were not properly input to the command (`<` vs `<<<`). This caused Bash to try and open the file named after the header string, which does not exist. Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
597b4bfcca
commit
febdbceab1
1 changed files with 1 additions and 1 deletions
|
@ -2391,7 +2391,7 @@ FTLcheckUpdate() {
|
|||
return 3
|
||||
fi
|
||||
|
||||
FTLlatesttag=$(grep 'Location' < "${FTLreleaseData}" | awk -F '/' '{print $NF}' | tr -d '\r\n')
|
||||
FTLlatesttag=$(grep 'Location' <<< "${FTLreleaseData}" | awk -F '/' '{print $NF}' | tr -d '\r\n')
|
||||
|
||||
if [[ "${FTLversion}" != "${FTLlatesttag}" ]]; then
|
||||
return 0
|
||||
|
|
Loading…
Reference in a new issue