From a921f0107a18e8b2cb23f123e6e1e9d7a28c0103 Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:00:12 +0700 Subject: [PATCH] feat(packages): add orbstack for work --- packages/orbstack.sh | 17 +++++++++++++++++ packages/podman.sh | 1 + 2 files changed, 18 insertions(+) create mode 100644 packages/orbstack.sh diff --git a/packages/orbstack.sh b/packages/orbstack.sh new file mode 100644 index 0000000..c0eebdb --- /dev/null +++ b/packages/orbstack.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +if + ! (command -v force_print >/dev/null 2>&1) || + ! (force_print 3 a b >/dev/null 2>&1) || + test "$(force_print 3 a b)" != "a b"; +then + printf "Please run this script through \"install.sh\" instead" + exit 1 +fi + +has_executable 'orb' + +profile work +use_brew formula 'orbstack' diff --git a/packages/podman.sh b/packages/podman.sh index b3fa384..499ebfa 100644 --- a/packages/podman.sh +++ b/packages/podman.sh @@ -13,5 +13,6 @@ fi has_executable 'podman' +profile -work use_apt 'podman' use_brew formula 'podman'