Addet a dream.sh import script (about 1k lines..)
This commit is contained in:
parent
fc72eb7577
commit
2b543575c4
1 changed files with 21 additions and 20 deletions
41
dream.sh
41
dream.sh
|
@ -163,7 +163,7 @@ check_env() {
|
||||||
# echo_info "User is not root. Using sudo for privileged operations."
|
# echo_info "User is not root. Using sudo for privileged operations."
|
||||||
_sudo="sudo -E"
|
_sudo="sudo -E"
|
||||||
else
|
else
|
||||||
echo_error "No sudo found and you're not root! Can't install packages."
|
echo-error "No sudo found and you're not root! Can't install packages."
|
||||||
return 69
|
return 69
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -558,25 +558,6 @@ update-package-list() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
|
||||||
pen bold grey "First time importing.."
|
|
||||||
|
|
||||||
if update-package-list; then
|
|
||||||
silentexec touch "$pikaCheckFile"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo_pkg "Skipping repo refresh"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
# NOTE:
|
# NOTE:
|
||||||
# ────────────────────────────────────< end distros.sh >────────────────────────────────────
|
# ────────────────────────────────────< end distros.sh >────────────────────────────────────
|
||||||
# ───────────────────────────────────────< beddu.sh >───────────────────────────────────────
|
# ───────────────────────────────────────< beddu.sh >───────────────────────────────────────
|
||||||
|
@ -921,3 +902,23 @@ seek() {
|
||||||
}
|
}
|
||||||
# NOTE:
|
# NOTE:
|
||||||
# ──────────────────────────────────────< end beddu >────────────────────────────────────
|
# ──────────────────────────────────────< end beddu >────────────────────────────────────
|
||||||
|
|
||||||
|
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
|
||||||
|
pen bold grey "First time importing.."
|
||||||
|
|
||||||
|
if update-package-list; then
|
||||||
|
silentexec touch "$pikaCheckFile"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo_pkg "Skipping repo refresh"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue