Skip to content

Commit 137069b

Browse files
committed
Add architecture suggestion
1 parent 6005324 commit 137069b

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

install_functions/checks.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,24 @@ function checks_arguments() {
5656
if [ -n "${download}" ] && [ -n "${download_arch}" ]; then
5757
if [ "${package_type}" = "deb" ]; then
5858
if [ "${arch}" != "amd64" ] && [ "${arch}" != "arm64" ]; then
59-
common_logger -e "Architecture ${arch} not valid for package type ${package_type}"
59+
if [ "${arch}" = "x86_64" ]; then
60+
common_logger -e "Architecture ${arch} not valid for package type ${package_type}. Use amd64 instead."
61+
elif [ "${arch}" = "aarch64" ]; then
62+
common_logger -e "Architecture ${arch} not valid for package type ${package_type}. Use arm64 instead."
63+
else
64+
common_logger -e "Architecture ${arch} not valid for package type ${package_type}"
65+
fi
6066
exit 1
6167
fi
6268
elif [ "${package_type}" = "rpm" ]; then
6369
if [ "${arch}" != "x86_64" ] && [ "${arch}" != "aarch64" ]; then
64-
common_logger -e "Architecture ${arch} not valid for package type ${package_type}"
70+
if [ "${arch}" = "amd64" ]; then
71+
common_logger -e "Architecture ${arch} not valid for package type ${package_type}. Use x86_64 instead."
72+
elif [ "${arch}" = "arm64" ]; then
73+
common_logger -e "Architecture ${arch} not valid for package type ${package_type}. Use aarch64 instead."
74+
else
75+
common_logger -e "Architecture ${arch} not valid for package type ${package_type}"
76+
fi
6577
exit 1
6678
fi
6779
fi

0 commit comments

Comments
 (0)