ABridoux/lux

[Zsh] Variables not categorised in a condition

Closed this issue · 0 comments

Example script:

#!/bin/zsh
if [ -f "Octory_inputs.json" ] ; then
	if secondSupply=$(scout -i Octory_inputs.json "Supplies[1]") ; then
		echo "$secondSupply"
	else
		echo "Not indicated"
	fi
fi

in ZshInjector, test if the variable match also has a "=$" suffix rather than only "=".