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

This commit is contained in:
Kamil Śliwak
2023-06-14 14:22:10 +02:00
parent e44b8b9097
commit f4217bdc2c
+1 -1
View File
@@ -115,7 +115,7 @@ function update_expectation {
local newExpectation="${1}"
local expectationFile="${2}"
if [[ $newExpectation == "" || $newExpectation -eq 0 && $expectationFile == */exit ]]
if [[ $newExpectation == '' || $newExpectation == '0' && $expectationFile == */exit ]]
then
if [[ -f $expectationFile ]]
then