Skip to content
Snippets Groups Projects
Commit a1f54270 authored by Jan Ebert's avatar Jan Ebert
Browse files

Improve safety

This way, paths with $ symbols or other fanciness won't be expanded.
However, paths with single quotes will cause errors; we would have to
escape those to handle all (?) errors.
parent e6f564ea
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ PYTHONWRAPPER="${ABSOLUTE_PATH}"/python
echo '#!/bin/bash
module purge 2> /dev/null
deactivate 2> /dev/null
source "'"${ABSOLUTE_PATH}"'"/activate.sh
source '"'${ABSOLUTE_PATH}'"'/activate.sh
python "$@"
' > "${PYTHONWRAPPER}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment