Bootstrap : Flatpak also installs packages now.
This commit is contained in:
parent
b8b53a259d
commit
4cfc469a97
|
@ -55,6 +55,21 @@ trim_trailing_whitespace = true
|
|||
" > .editorconfig
|
||||
}
|
||||
|
||||
function bootstrap_flathub() {
|
||||
flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
# Setup all the flatpak apps on the machine.
|
||||
function bootstrap_flatpak() {
|
||||
# Add Flathub repo.
|
||||
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
# Reinstall apps.
|
||||
local IFS=$'\n'
|
||||
local targets="$(cat ~/.config/linux/Flatpak.txt)"
|
||||
|
||||
process() {
|
||||
local packet="${target#*$'\t'}"
|
||||
packet="${packet%%$'\t'*}"
|
||||
|
||||
flatpak install "${packet}"
|
||||
}
|
||||
|
||||
_iterate_targets process ${targets[@]}
|
||||
}
|
||||
|
|
Reference in a new issue