diff options
Diffstat (limited to 'emulators/hatari/files/patch-tools_atari-hd-image.sh')
-rw-r--r-- | emulators/hatari/files/patch-tools_atari-hd-image.sh | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/emulators/hatari/files/patch-tools_atari-hd-image.sh b/emulators/hatari/files/patch-tools_atari-hd-image.sh index 9b92f43e239b..2b6cb31943d8 100644 --- a/emulators/hatari/files/patch-tools_atari-hd-image.sh +++ b/emulators/hatari/files/patch-tools_atari-hd-image.sh @@ -1,4 +1,4 @@ ---- tools/atari-hd-image.sh.orig 2024-04-26 10:23:56 UTC +--- tools/atari-hd-image.sh.orig 2025-08-09 22:33:00 UTC +++ tools/atari-hd-image.sh @@ -33,8 +33,8 @@ export PATH export PATH @@ -6,19 +6,17 @@ # check tools -if [ -z "$(which mkdosfs)" ] || [ -z "$(which python3)" ]; then - echo "ERROR: either mkdosfs or python3 missing!" -+if [ -z "$(which mkdosfs)" ] || [ -z "$(which %%PYTHON_VERSION%%)" ]; then -+ echo "ERROR: either mkdosfs or %%PYTHON_VERSION%% missing!" ++if [ -z "$(which mkdosfs)" ] || [ -z "$(which %%PYTHON_CMD%%)" ]; then ++ echo "ERROR: either mkdosfs or %%PYTHON_CMD%% missing!" exit 1 fi -@@ -147,8 +147,8 @@ echo "$step) Create DOS Master Boot Record / partition +@@ -147,7 +147,7 @@ echo "$step) Create DOS Master Boot Record / partition # - http://en.wikipedia.org/wiki/File_Allocation_Table#Boot_Sector # For DOS MBR, the values are little endian. # ----------- -python3 << EOF --#!/usr/bin/env python3 -+%%PYTHON_VERSION%% << EOF -+#!/usr/bin/env %%PYTHON_VERSION%% ++%%PYTHON_CMD%% << EOF + #!/usr/bin/python3 mbr = bytearray(512) - def set_long(idx, value): |