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