Fix error when trying to make the openssl symlink again.
authorCarl Hetherington <cth@carlh.net>
Thu, 8 Oct 2020 13:37:35 +0000 (15:37 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 8 Oct 2020 13:37:35 +0000 (15:37 +0200)
run/tests

index 8b54d2b..afec5d2 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -6,7 +6,9 @@ if [ "$(uname)" == "Linux" ]; then
   export LD_LIBRARY_PATH=build/src/lib:/home/c.hetherington/lib:$LD_LIBRARY_PATH
   rm -f build/test/openssl
   # This must be our patched openssl or tests will fail
-  ln -s ../../../openssl/apps/openssl build/test/dcpomatic2_openssl
+  if [ ! -f build/test/dcpomatic2_openssl ]; then 
+    ln -s ../../../openssl/apps/openssl build/test/dcpomatic2_openssl
+  fi
 fi
 
 if [ "$1" == "--debug" ]; then