_homebrew.sh

cask upgrade
This commit is contained in:
2018-09-28 17:25:19 +02:00
parent 5f1075ad05
commit 39fff6cb5a

View File

@@ -70,7 +70,7 @@ if [ -n "$upd3" ]; then
if [ "$choice" == "y" ]; then if [ "$choice" == "y" ]; then
for i in "$upd3" for i in $upd3
do do
FOUND=`echo ${do_not_update[*]} | grep "$i"` FOUND=`echo ${do_not_update[*]} | grep "$i"`
if [ "${FOUND}" = "" ]; then if [ "${FOUND}" = "" ]; then
@@ -96,27 +96,16 @@ cask_outdated=$(brew cask outdated --greedy --verbose)
outdated=$(echo "$cask_outdated" | grep -v '(latest)') outdated=$(echo "$cask_outdated" | grep -v '(latest)')
if [ -n "$outdated" ]; then if [ -n "$outdated" ]; then
echo "$outdated"
# don't stop multiples updates if one block (bad checksum, not compatible with OS version (Onyx))
#echo "$outdated" | awk '{print $1}' | awk '{print $1}' | xargs brew cask reinstall sea=$(echo "$outdated" | awk '{print $1}')
for i in "$outdated"
for i in $sea
do do
echo "$i" FOUND=`echo ${do_not_update[*]} | grep "$i"`
echo "$i" | awk '{print $1}'
sea=$(echo "$i" | awk '{print $1}')
echo "$sea"
if [ "$sea" != "onyx" ]; then
echo ${do_not_update[*]} | grep "$sea"
fi
#FOUND=`echo ${do_not_update[*]} | grep "$sea"`
#echo "found: ${FOUND}"
if [ "${FOUND}" == "" ]; then if [ "${FOUND}" == "" ]; then
echo echo "$i" | xargs brew cask reinstall
#echo "$i" | awk '{print $1}' | awk '{print $1}' | xargs brew cask reinstall
fi fi
done done