From 9495de87f23c375340528bb36857036e9c0d18bc Mon Sep 17 00:00:00 2001 From: Carlo Antonio Pignedoli Date: Sun, 24 Mar 2024 19:45:29 +0100 Subject: [PATCH 1/2] added chmod +a for .py of spmtools and fixed a potential bug in dir creation --- before-notebook.d/72_setup_stm_tools.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/before-notebook.d/72_setup_stm_tools.sh b/before-notebook.d/72_setup_stm_tools.sh index 3c0f6b9..7d6459d 100755 --- a/before-notebook.d/72_setup_stm_tools.sh +++ b/before-notebook.d/72_setup_stm_tools.sh @@ -10,12 +10,13 @@ if [ -d "/home/jovyan/soft/" ]; then else echo "Directory does not exist. Creating" mkdir /home/jovyan/soft - mkdir /home/jovyan/soft/cp2k-spm-tools fi if [ -f "/home/jovyan/soft/cp2k-spm-tools/cube_from_wfn.py" ]; then echo "cp2k-spm-tools found" else echo "cp2k-spm-tools not found, installing" - git clone https://github.com/nanotech-empa/cp2k-spm-tools.git /home/jovyan/soft/cp2k-spm-tools + git clone https://github.com/nanotech-empa/cp2k-spm-tools.git + mv cp2k-spm-tools /home/jovyan/soft/ + chmod a+x /home/jovyan/soft/cp2k-spm-tools/*py fi From b18fa51374b95f13f519598e08b42609d4c1e504 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 24 Mar 2024 18:47:35 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- before-notebook.d/72_setup_stm_tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/before-notebook.d/72_setup_stm_tools.sh b/before-notebook.d/72_setup_stm_tools.sh index 7d6459d..b706d4b 100755 --- a/before-notebook.d/72_setup_stm_tools.sh +++ b/before-notebook.d/72_setup_stm_tools.sh @@ -16,7 +16,7 @@ if [ -f "/home/jovyan/soft/cp2k-spm-tools/cube_from_wfn.py" ]; then echo "cp2k-spm-tools found" else echo "cp2k-spm-tools not found, installing" - git clone https://github.com/nanotech-empa/cp2k-spm-tools.git + git clone https://github.com/nanotech-empa/cp2k-spm-tools.git mv cp2k-spm-tools /home/jovyan/soft/ chmod a+x /home/jovyan/soft/cp2k-spm-tools/*py fi