Add AppCleaner to macOS install
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).
This commit is contained in:
15
script/install.d/76-appcleaner.sh
Normal file
15
script/install.d/76-appcleaner.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/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
|
||||||
Reference in New Issue
Block a user