Combine if statements [closed]
up vote
-1
down vote
favorite
#select the snapshot or release if [ "$SELECT_SNAP_OR_REL_VERSION" == "Snapshots" ] then $SELECT_SNAPSHOT_VERSION echo "Snapshot Selected" elif [ "$SELECT_SNAP_OR_REL_VERSION" == "Releases" ] then $SELECT_RELEASE_VERSION echo "Release Selected" else echo "No Selection" fi #deploy the artifact to selected server if [ "$Server_Selection" == "192.168.94.139" ] then selectDevSnap; elif [ "$Server_Selection" == "192.168.94.140" ] then selectProdRel else echo "Error" fi I need to combine above two scripts. If selected version is "Snapshots" then "SELECT SNAPSHOT VERSION", then if "SERVER SELECTIO...