Skip to content

Commit

Permalink
Protect against potentially empty ${MCCODE_RESOURCEDIR} to rectify #1580
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Mar 20, 2024
1 parent 3af5421 commit 7859d04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/support/install-scripts/postrm.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ export PATH=${MCCODE_BINDIR}:${PATH}

# Remove html files if mcdoc is no longer installed
if [ ! -x ${MCCODE_BINDIR}/${MC}doc ]; then
find ${MCCODE_RESOURCEDIR} -iname '*.html' -exec rm -f \{\} \;
if [ "x${MCCODE_RESOURCEDIR}" != "x" ]; then
find ${MCCODE_RESOURCEDIR} -iname '*.html' -exec rm -f \{\} \;
fi
fi

0 comments on commit 7859d04

Please sign in to comment.