From 712b5f45bf45cccc2800d737a2ea1c98c6569dbb Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Wed, 22 Mar 2023 15:50:10 -0400 Subject: [PATCH] source a relative path Fix #2409. By default, `source` searches the file from `PATH` (see the help from `source --help`). This might cause conflict. To prevent this behavior, one has to source the relative path instead. Signed-off-by: Jinzhe Zeng --- source/lmp/Install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lmp/Install.sh b/source/lmp/Install.sh index 87c51a9766..d2a728226e 100644 --- a/source/lmp/Install.sh +++ b/source/lmp/Install.sh @@ -1,6 +1,6 @@ #!/bin/bash -source env.sh +source ./env.sh # Install/unInstall package files in LAMMPS # mode = 0/1/2 for uninstall/install/update