I can\'t figure out what is wrong with following script.
#!/bin/bash if [ \"$1\" = \"x\" ] then echo Pushing web on sharada to origin. else if [ \"$1\" = \"y
It should be elif, not else if, as shown below:
elif
else if
if [ "$1" = "x" ] then echo Pushing web on sharada to origin. elif [ "$1" = "y" ] then echo Pulling web on sharada from origin. else echo "Usage : arg x to push or y to pull." fi