From a1f54270aaef459fa512b3b62460517a415eccd0 Mon Sep 17 00:00:00 2001
From: ebert1 <ja.ebert@fz-juelich.de>
Date: Fri, 8 Sep 2023 15:27:31 +0200
Subject: [PATCH] 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.
---
 create_python_for_vscode.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create_python_for_vscode.sh b/create_python_for_vscode.sh
index 7d2dcfc..aa3e985 100755
--- a/create_python_for_vscode.sh
+++ b/create_python_for_vscode.sh
@@ -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}"
 
-- 
GitLab