Fix rare case when apt and rpm package managers are found

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König 2024-12-14 22:26:05 +01:00
parent 4dbf9a0bbb
commit fdda40994b
No known key found for this signature in database

View file

@ -484,9 +484,8 @@ build_dependency_package(){
# Move back into the directory the user started in
popd &> /dev/null || return 1
fi
if is_command rpm; then
elif is_command rpm; then
# move into the tmp directory
pushd /tmp &>/dev/null || return 1
@ -517,6 +516,13 @@ build_dependency_package(){
# Move back into the directory the user started in
popd &> /dev/null || return 1
# If neither apt-get or yum/dnf package managers were found
else
# we cannot build required packages
printf " %b No supported package manager found\\n" "${CROSS}"
# so exit the installer
exit 1
fi
# Remove the build directory