Add script to install AppCleaner on macOS using Homebrew. * Create `script/install.d/76-appcleaner.sh` to check if AppCleaner is already installed and install it if not * Print a message indicating whether AppCleaner is already installed or has been installed --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/andrejusk/dotfiles?shareId=XXXX-XXXX-XXXX-XXXX).
16 lines
402 B
Bash
16 lines
402 B
Bash
#!/usr/bin/env bash
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Description:
|
|
# (macOS only) Install AppCleaner.
|
|
#
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
if ! brew list --cask appcleaner &> /dev/null; then
|
|
brew install --cask appcleaner
|
|
echo "AppCleaner has been installed."
|
|
else
|
|
echo "AppCleaner is already installed."
|
|
fi
|
|
fi
|