Skip to content

Commit ffa2322

Browse files
hoholethanh
authored andcommitted
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.
1 parent 9bd3c03 commit ffa2322

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtimes/aleph-debian-11-python/create_disk_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ echo "Pip installing aleph-client"
3939
pip3 install 'aleph-sdk-python==0.7.0'
4040
4141
# Compile Python code to bytecode for faster execution
42-
# -o2 is needed to compile with optimization level 2 which is what we launch init1.py (`python -OO`)
42+
# -o2 is needed to compile with optimization level 2 which is what we launch init1.py ("python -OO")
4343
# otherwise they are not used
4444
python3 -m compileall -o 2 -f /usr/local/lib/python3.9
4545

runtimes/aleph-debian-12-python/create_disk_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mkdir -p /opt/aleph/libs
3939
pip3 install --target /opt/aleph/libs 'aleph-sdk-python==0.9.0' 'aleph-message==0.4.4' 'fastapi~=0.109.2'
4040
4141
# Compile Python code to bytecode for faster execution
42-
# -o2 is needed to compile with optimization level 2 which is what we launch init1.py (`python -OO`)
42+
# -o2 is needed to compile with optimization level 2 which is what we launch init1.py ("python -OO")
4343
# otherwise they are not used
4444
python3 -m compileall -o 2 -f /usr/local/lib/python3.11
4545
python3 -m compileall -o 2 -f /opt/aleph/libs

0 commit comments

Comments
 (0)