Categories
Linux Mastering Development

How to make sure only one instance of a bash script with parameters runs?

if I have a deployment.sh, it has two parameters: environment and release version. deployment.sh uat release1 deployment.sh prod release1 I want to make at any time: the deployment.sh with same environment and release version can be run in singleton. But deployment.sh uat release1 and deployment.sh prod release1 can be run concurrently. How to do this. […]