Fix Bash syntax error that shows up in CLI tests when updating expectations

This commit is contained in:
Kamil Śliwak 2023-06-13 13:09:28 +02:00
parent e44b8b9097
commit f4217bdc2c

View File

@ -115,7 +115,7 @@ function update_expectation {
local newExpectation="${1}" local newExpectation="${1}"
local expectationFile="${2}" local expectationFile="${2}"
if [[ $newExpectation == "" || $newExpectation -eq 0 && $expectationFile == */exit ]] if [[ $newExpectation == '' || $newExpectation == '0' && $expectationFile == */exit ]]
then then
if [[ -f $expectationFile ]] if [[ -f $expectationFile ]]
then then