From d0920a634f2c4e0b87d573a380277f515210fc53 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Thu, 2 May 2024 16:40:00 +0200 Subject: [PATCH] Fix: Backquote in shell script executed command When executed using `bash`, the `create_disk_image` was interrupted by a Python REPL due to the `python -OO` command being surrounded by backquotes. --- runtimes/aleph-debian-11-python/create_disk_image.sh | 2 +- runtimes/aleph-debian-12-python/create_disk_image.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtimes/aleph-debian-11-python/create_disk_image.sh b/runtimes/aleph-debian-11-python/create_disk_image.sh index bf05fbf48..2f426b903 100755 --- a/runtimes/aleph-debian-11-python/create_disk_image.sh +++ b/runtimes/aleph-debian-11-python/create_disk_image.sh @@ -39,7 +39,7 @@ echo "Pip installing aleph-client" pip3 install 'aleph-sdk-python==0.7.0' # Compile Python code to bytecode for faster execution -# -o2 is needed to compile with optimization level 2 which is what we launch init1.py (`python -OO`) +# -o2 is needed to compile with optimization level 2 which is what we launch init1.py ("python -OO") # otherwise they are not used python3 -m compileall -o 2 -f /usr/local/lib/python3.9 diff --git a/runtimes/aleph-debian-12-python/create_disk_image.sh b/runtimes/aleph-debian-12-python/create_disk_image.sh index 78c96b897..bfaf050f1 100755 --- a/runtimes/aleph-debian-12-python/create_disk_image.sh +++ b/runtimes/aleph-debian-12-python/create_disk_image.sh @@ -39,7 +39,7 @@ mkdir -p /opt/aleph/libs pip3 install --target /opt/aleph/libs 'aleph-sdk-python==0.9.0' 'aleph-message==0.4.4' 'fastapi~=0.109.2' # Compile Python code to bytecode for faster execution -# -o2 is needed to compile with optimization level 2 which is what we launch init1.py (`python -OO`) +# -o2 is needed to compile with optimization level 2 which is what we launch init1.py ("python -OO") # otherwise they are not used python3 -m compileall -o 2 -f /usr/local/lib/python3.11 python3 -m compileall -o 2 -f /opt/aleph/libs