Here's my script:
#!/bin/bash
path=$1
if [[ ./first.sh "$path" == "0" ]]
echo "0"
fi
The script "first.sh" prints a number using echo. Now in the second script i wanna check if the output of the first script was "0" and if so, print "0"
What am I doing wrong?