File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,24 @@ function checks_arguments() {
56
56
if [ -n " ${download} " ] && [ -n " ${download_arch} " ]; then
57
57
if [ " ${package_type} " = " deb" ]; then
58
58
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
60
66
exit 1
61
67
fi
62
68
elif [ " ${package_type} " = " rpm" ]; then
63
69
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
65
77
exit 1
66
78
fi
67
79
fi
You can’t perform that action at this time.
0 commit comments