Skip to content

Commit

Permalink
added chmod +a for .py of spmtools and fixed a potential bug in dir c… (
Browse files Browse the repository at this point in the history
#23)

* added chmod +a for .py of spmtools and fixed a potential bug in dir creation

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
cpignedoli and pre-commit-ci[bot] authored Mar 24, 2024
1 parent 07baa3d commit e96223b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions before-notebook.d/72_setup_stm_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e96223b

Please sign in to comment.