Skip to content

Commit

Permalink
Fix error when getting latest FTL tag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AzureMarker committed Aug 21, 2019
1 parent 597b4bf commit febdbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion automated install/basic-install.sh
Expand Up @@ -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
Expand Down

0 comments on commit febdbce

Please sign in to comment.