wip
This commit is contained in:
parent
470c36fc4f
commit
6746746a33
1 changed files with 12 additions and 3 deletions
15
distros.sh
15
distros.sh
|
@ -400,7 +400,10 @@ update_package_list() {
|
|||
;;
|
||||
opensuse) run $_sudo zypper ref ;;
|
||||
alpine) run $_sudo apk update ;;
|
||||
*) echo_error "Unsupported distribution: ${BRIGHT_RED}$distro" ;;
|
||||
*)
|
||||
echo_error "Unsupported distribution: ${BRIGHT_RED}$distro"
|
||||
return 69
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
@ -408,11 +411,17 @@ if check_env; then
|
|||
get_packager
|
||||
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
|
||||
echo_pkg "First time being imported.."
|
||||
touch "$pikaCheckFile"
|
||||
|
||||
update_package_list
|
||||
if update_package_list; then
|
||||
touch "$pikaCheckFile"
|
||||
fi
|
||||
else
|
||||
echo_note "Skipping repo refresh (PIKA_INIT is already set)"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue