Skip to content
Snippets Groups Projects
Commit d71052c3 authored by nimrod's avatar nimrod
Browse files

Update OpenBSD.

parent 38e44dd6
Branches
No related tags found
No related merge requests found
...@@ -55,14 +55,26 @@ _workbench() { ...@@ -55,14 +55,26 @@ _workbench() {
fi fi
} }
_pkg_add() {
has pkg_add || fail pkg_add not found.
header Updating Workbench
if [ -n "${DOWNLOAD_ONLY:-}" ]
then
doas pkg_add -un
else
doas pkg_add -u
}
_all() { _all() {
! has apt-get || _apt ! has apt-get || _apt
! has pkg_add || _pkg_add
! has flatpak || _flatpak ! has flatpak || _flatpak
! { has wb || wb -i; } || _workbench ! { has wb || wb -i; } || _workbench
} }
list_supported() { list_supported() {
! has apt-get || echo apt ! has apt-get || echo apt
! has pkg_add || echo pkg_add
! has flatpak || echo flatpak ! has flatpak || echo flatpak
! has wb || wb -i || echo workbench ! has wb || wb -i || echo workbench
printf '%s' all printf '%s' all
...@@ -93,6 +105,7 @@ else ...@@ -93,6 +105,7 @@ else
apt) _apt;; apt) _apt;;
flatpak) _flatpak;; flatpak) _flatpak;;
workbench|wb) _workbench;; workbench|wb) _workbench;;
pkg|pkg_add) _pkg_add;;
*) usage; exit 1;; *) usage; exit 1;;
esac esac
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment