Fix --install=local on SUSE

This commit is contained in:
2024-11-04 13:07:31 -05:00
parent f29945d681
commit b0f31ed3f0

View File

@@ -269,16 +269,11 @@ init() {
# Currently there is no remote repository for SUSE
# installJRMC can easily create one but I'd rather a SUSEian provide it
# So use local rpmbuild method by default for SUSE
if [[ $# -le 2 ]]; then
case "$1" in
--debug| -d| --verbose| -y| --yes| --auto| --mcrepo| --mcversion| \
--arch| --betapass| --restorefile| --outputdir| --no-update)
debug "Automatically using --install local for SUSE"
if ((REPO_INSTALL_SWITCH)); then
debug "Automatically using --install=local for SUSE"
REPO_INSTALL_SWITCH=0
BUILD_SWITCH=1
LOCAL_INSTALL_SWITCH=1
;;
esac
fi
;;
*)
@@ -295,7 +290,7 @@ init() {
else
err "OS detection failed!"
ask_ok "Continue with manual installation?" || exit 1
debug "Automatically using --install local for unknown distro"
debug "Automatically using --install=local for unknown distro"
ID="unknown"
REPO_INSTALL_SWITCH=0
BUILD_SWITCH=1