Issus resolved. Was doing the mistake of not adding shell to the script.
Code:
#!/bin/bashvar1="a"var2="a"if [ "$var1" == "$var2" ]; then echo "same" >> /home/pi/test.logelse echo "notsame" >> /home/pi/test.logfiStatistics: Posted by sim_tcr — Fri Nov 22, 2024 5:38 am