Clean up _homebrew.sh

This commit is contained in:
2018-03-13 06:33:17 +01:00
parent b667c22798
commit e9db6f187d

View File

@@ -3,10 +3,6 @@
# Homebrew plugin for KYMSU # Homebrew plugin for KYMSU
# https://github.com/welcoMattic/kymsu # https://github.com/welcoMattic/kymsu
if [[ "${1}" == "latest" ]]; then
echo "toto"
fi
echo "🍺 Homebrew" echo "🍺 Homebrew"
brew update brew update
@@ -15,7 +11,6 @@ echo ""
brew_outdated=$(brew outdated) brew_outdated=$(brew outdated)
upd3=$(echo "$brew_outdated" | awk '{print $1}') upd3=$(echo "$brew_outdated" | awk '{print $1}')
#brewsy=$(echo "$brew_outdated" | wc -l | awk {'print $1'}) #brewsy=$(echo "$brew_outdated" | wc -l | awk {'print $1'})
echo ":$upd3:"
#if [ "$upd3" != "" ]; then #if [ "$upd3" != "" ]; then
if [ -n "$upd3" ]; then if [ -n "$upd3" ]; then
@@ -42,7 +37,6 @@ else
echo -e "\033[4mNo availables Cask updates.\033[0m" echo -e "\033[4mNo availables Cask updates.\033[0m"
fi fi
#if [[ $1 == "latest" ]]; then
echo "" echo ""
latest=$(echo "$cask_outdated" | grep '(latest)') latest=$(echo "$cask_outdated" | grep '(latest)')
if [ -n "$latest" ]; then if [ -n "$latest" ]; then
@@ -58,7 +52,6 @@ if [ -n "$latest" ]; then
esac esac
fi fi
#fi
echo "" echo ""
echo "🍺 The Doc is checking that everything is ok." echo "🍺 The Doc is checking that everything is ok."