From be1ab0be7e0112d5f0f9985e652c1b3cf323245d Mon Sep 17 00:00:00 2001 From: Andrejus Date: Fri, 8 Mar 2024 12:07:09 +0000 Subject: [PATCH] feat: rectangle app, mac install bump --- script/install.d/03-apt.sh | 4 ++-- script/install.d/71-rectangle.sh | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 script/install.d/71-rectangle.sh diff --git a/script/install.d/03-apt.sh b/script/install.d/03-apt.sh index 2d2fb9d..659642d 100644 --- a/script/install.d/03-apt.sh +++ b/script/install.d/03-apt.sh @@ -17,8 +17,8 @@ if command -v apt-get &> /dev/null; then sudo apt-get install -qq "${apt_packages[@]}" unset apt_packages + + apt --version else echo "Skipping: apt-get not found" fi - -apt --version diff --git a/script/install.d/71-rectangle.sh b/script/install.d/71-rectangle.sh new file mode 100644 index 0000000..ef9e9df --- /dev/null +++ b/script/install.d/71-rectangle.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# (macOS only) Install Rectangle. +# + +if [[ "$OSTYPE" == "darwin"* ]]; then + if ! brew list --cask rectangle &> /dev/null; then + brew install --cask rectangle + else + echo "Rectangle is already installed." + fi +fi