mirror of
https://github.com/andwati/dotfiles.git
synced 2026-10-18 19:12:53 +00:00
Adds a TUI-driven, rollback-capable installer (install/install.sh + install/modules/*.sh) covering JS/Python/systems toolchains, dev tooling, browsers, chat apps, GNOME extras, and misc setup (wakatime key, ssh/gpg perms, apt mirror benchmarking), all sourced from each vendor's official install method. bootstrap.sh stows the zsh/git/tmux/vscode dotfiles and runs the installer; desnap.sh purges snapd and replaces default snaps with apt/Flatpak equivalents.
22 lines
735 B
Bash
22 lines
735 B
Bash
install_onedrive() {
|
|
if has_cmd onedrive; then
|
|
ok "onedrive already installed"
|
|
return
|
|
fi
|
|
|
|
local version repo_base
|
|
version=$(. /etc/os-release; echo "$VERSION_ID")
|
|
repo_base="https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_${version}"
|
|
|
|
if ! curl -fsSL -o /dev/null "${repo_base}/Release"; then
|
|
warn "onedrive's OBS repo has no build for Ubuntu ${version} yet, falling back to 24.04"
|
|
version="24.04"
|
|
repo_base="https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_${version}"
|
|
fi
|
|
|
|
apt_add_repo onedrive /etc/apt/keyrings/onedrive.gpg \
|
|
"${repo_base}/Release.key" \
|
|
"deb ${repo_base}/ ./"
|
|
apt_install onedrive
|
|
}
|