Skip to content

Commit e544cf0

Browse files
add arch translator
1 parent 4cf00bd commit e544cf0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

udroid/src/udroid.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,15 @@ install() {
134134
############### END OF OPTION PARSER ##############
135135

136136
# Finally to get link
137-
arch=$(dpkg --print-architecture)
137+
138+
# arch transition
139+
case $(dpkg --print-architecture) in
140+
arm64 | aarch64) arch=arm64 ;;
141+
armhf | armv7l | armv8l) arch=armhf ;;
142+
x86_64| amd64) arch=amd64;;
143+
*) die "unsupported architecture" ;;
144+
esac
145+
138146
link=$(cat $distro_data | jq -r ".$suite.$varient.${arch}url")
139147
LOG "link=$link"
140148
name=$(cat $distro_data | jq -r ".$suite.$varient.Name")

0 commit comments

Comments
 (0)