This commit is contained in:
pika 2025-05-19 10:14:44 +02:00
parent 470c36fc4f
commit 6746746a33

View file

@ -400,7 +400,10 @@ update_package_list() {
;; ;;
opensuse) run $_sudo zypper ref ;; opensuse) run $_sudo zypper ref ;;
alpine) run $_sudo apk update ;; alpine) run $_sudo apk update ;;
*) echo_error "Unsupported distribution: ${BRIGHT_RED}$distro" ;; *)
echo_error "Unsupported distribution: ${BRIGHT_RED}$distro"
return 69
;;
esac esac
} }
@ -408,11 +411,17 @@ if check_env; then
get_packager get_packager
dist_setup dist_setup
# WHY:
# ╭─────────────────────────────────────────────────────────────────────────╮
# │ check if the script has run at least once, so that the sources dont │
# │ have to get updated again.. │
# ╰─────────────────────────────────────────────────────────────────────────╯
if [[ -z "$PIKA_INIT" ]]; then if [[ -z "$PIKA_INIT" ]]; then
echo_pkg "First time being imported.." echo_pkg "First time being imported.."
touch "$pikaCheckFile"
update_package_list if update_package_list; then
touch "$pikaCheckFile"
fi
else else
echo_note "Skipping repo refresh (PIKA_INIT is already set)" echo_note "Skipping repo refresh (PIKA_INIT is already set)"
fi fi