diff options
| author | Jakob Unterwurzacher | 2018-03-05 21:11:46 +0100 | 
|---|---|---|
| committer | Jakob Unterwurzacher | 2018-03-05 21:11:46 +0100 | 
| commit | 3860a82c21733d981bbd5a90a0c0a802121e7d3f (patch) | |
| tree | 9f20e4a68d381315930e12c83e6700536e04deba | |
| parent | 29496baa707e36d58bf97046a18b8ba0a4fc5bbc (diff) | |
test.bash: skip flock if not available
MacOS does not have it installed by default.
| -rwxr-xr-x | test.bash | 4 | 
1 files changed, 3 insertions, 1 deletions
| @@ -12,7 +12,9 @@ mkdir -p $TESTDIR  (  # Prevent multiple parallel test.bash instances as this causes  # all kinds of mayham -if ! flock -n 200 ; then +if ! command -v flock > /dev/null ; then +	echo "flock is not available, skipping" +elif ! flock -n 200 ; then  	echo "Could not acquire lock on $LOCKFILE - already running?"  	exit 1  fi | 
