Skip to content

Commit

Permalink
Remove trailing whitespace from install.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Papiris <[email protected]>
  • Loading branch information
ruzko authored and dereknola committed Oct 1, 2024
1 parent ab89363 commit fb4bef0
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ can_skip_download_binary() {
fi
}

can_skip_download_selinux() {
if [ "${INSTALL_K3S_SKIP_DOWNLOAD}" != true ] && [ "${INSTALL_K3S_SKIP_DOWNLOAD}" != selinux ]; then
return 1
fi
}
can_skip_download_selinux() {
if [ "${INSTALL_K3S_SKIP_DOWNLOAD}" != true ] && [ "${INSTALL_K3S_SKIP_DOWNLOAD}" != selinux ]; then
return 1
fi
}

# --- verify an executable k3s binary is installed ---
verify_k3s_is_executable() {
Expand Down Expand Up @@ -385,7 +385,7 @@ get_release_version() {
get_k3s_selinux_version() {
available_version="k3s-selinux-1.2-2.${rpm_target}.noarch.rpm"
info "Finding available k3s-selinux versions"

# run verify_downloader in case it binary installation was skipped
verify_downloader curl || verify_downloader wget || fatal 'Can not find curl or wget for downloading files'

Expand Down Expand Up @@ -552,7 +552,7 @@ setup_binary() {

# --- setup selinux policy ---
setup_selinux() {
case ${INSTALL_K3S_CHANNEL} in
case ${INSTALL_K3S_CHANNEL} in
*testing)
rpm_channel=testing
;;
Expand Down Expand Up @@ -614,7 +614,7 @@ setup_selinux() {
info "Skipping installation of SELinux RPM"
return
fi

get_k3s_selinux_version
install_selinux_rpm ${rpm_site} ${rpm_channel} ${rpm_target} ${rpm_site_infix}

Expand Down Expand Up @@ -683,7 +683,7 @@ EOF
if [ "${rpm_installer}" = "yum" ] && [ -x /usr/bin/dnf ]; then
rpm_installer=dnf
fi
if rpm -q --quiet k3s-selinux; then
if rpm -q --quiet k3s-selinux; then
# remove k3s-selinux module before upgrade to allow container-selinux to upgrade safely
if check_available_upgrades container-selinux ${3} && check_available_upgrades k3s-selinux ${3}; then
MODULE_PRIORITY=$($SUDO semodule --list=full | grep k3s | cut -f1 -d" ")
Expand Down Expand Up @@ -1150,4 +1150,3 @@ eval set -- $(escape "${INSTALL_K3S_EXEC}") $(quote "$@")
create_service_file
service_enable_and_start
}

0 comments on commit fb4bef0

Please sign in to comment.