Skip to content

Commit 90cf0af

Browse files
committed
fix pandoc install script to respect architecture
1 parent 0e7d30a commit 90cf0af

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

templates/installPandoc.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
# This file was automatically generated with PreTeXt {VERSION}.
44
# If you modify this file, PreTeXt will no longer automatically update it.
55

6-
wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-amd64.deb -O pandoc.deb
6+
# Detect architecture and download appropriate Pandoc version
7+
if uname -m | grep -q "aarch64\|arm64"; then
8+
# ARM architecture
9+
wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-arm64.deb -O pandoc.deb
10+
else
11+
# x86/amd64 architecture
12+
wget https://github.com/jgm/pandoc/releases/download/3.8.3/pandoc-3.8.3-1-amd64.deb -O pandoc.deb
13+
fi
714

815
# wait for 60 second and then double check that no other script is using apt-get:
916
sleep 60

0 commit comments

Comments
 (0)