mac changes

This commit is contained in:
Vasili Svirydau
2021-04-28 23:47:04 -07:00
parent cf075eb3cc
commit 6b2245dd16
6 changed files with 31 additions and 8 deletions

View File

@@ -1,6 +1,18 @@
#!/bin/bash
if ! command -v shellcheck > /dev/null; then
sudo apt update > /dev/null && sudo apt install shellcheck > /dev/null;
echo "Installed Shellcheck"
did_install=0
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt update > /dev/null && sudo apt install shellcheck > /dev/null;
did_install=1
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install shellcheck
did_install=1
fi
if [[ "$did_install" == 1 ]]; then
echo "Installed Shellcheck"
else
echo "Did NOT install Shellcheck"
fi
fi