Skip to content

Commit

Permalink
build: fix SC2086 (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebaptiste authored Aug 30, 2024
1 parent 2b0cc3c commit ab776b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions adm/templates/profile
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ fi
{% endif %}

# Create salem data file in .salem_cache
if test -f ${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip; then
if test ! -d ${HOME}/.salem_cache; then
mkdir -p ${HOME}/.salem_cache
if test -f "${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"; then
if test ! -d "${HOME}/.salem_cache"; then
mkdir -p "${HOME}/.salem_cache"
else
rm -f ${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip
rm -f "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"
fi
ln -s ${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip ${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip
ln -s "${MFEXT_HOME}/opt/python3_scientific/share/salem/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip" "${HOME}/.salem_cache/salem-sample-data-57e6d694aa470b967336f5ca2d4fc743c5c8efd6.zip"
fi

# A little kind of magic to deal with [log]/json_file=AUTO
Expand Down

0 comments on commit ab776b8

Please sign in to comment.