feat: macos and brew install support

This commit is contained in:
Andrejus Kostarevas
2024-01-25 00:27:04 +00:00
parent 62e6c0243e
commit 61fb58e90c
15 changed files with 148 additions and 45 deletions

13
script/install.d/98-clean.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Clean up after installation.
#
if [[ "$OSTYPE" == "darwin"* ]]; then
brew cleanup
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get autoremove -qq
sudo apt-get clean -qq
fi