blocage avec onyx 10.14 non compatible
This commit is contained in:
2018-09-28 07:11:03 +02:00
parent f4aa4fad54
commit 5f1075ad05

View File

@@ -6,6 +6,9 @@
# Display info on updated pakages # Display info on updated pakages
display_info=true display_info=true
#add module to do_not_update array
declare -a do_not_update=('onyx')
# No distract mode (Casks with 'latest' version number won't be updated) # No distract mode (Casks with 'latest' version number won't be updated)
no_distract=false no_distract=false
@@ -66,9 +69,13 @@ if [ -n "$upd3" ]; then
#esac #esac
if [ "$choice" == "y" ]; then if [ "$choice" == "y" ]; then
for i in "$upd3" for i in "$upd3"
do do
echo "$i" | awk '{print $1}' | xargs -p -n 1 brew upgrade FOUND=`echo ${do_not_update[*]} | grep "$i"`
if [ "${FOUND}" = "" ]; then
echo "$i" | awk '{print $1}' | xargs -p -n 1 brew upgrade
fi
done done
else else
echo "Ok, let's continue" echo "Ok, let's continue"
@@ -94,7 +101,23 @@ if [ -n "$outdated" ]; then
#echo "$outdated" | awk '{print $1}' | awk '{print $1}' | xargs brew cask reinstall #echo "$outdated" | awk '{print $1}' | awk '{print $1}' | xargs brew cask reinstall
for i in "$outdated" for i in "$outdated"
do do
echo "$i" | awk '{print $1}' | awk '{print $1}' | xargs brew cask reinstall echo "$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
echo
#echo "$i" | awk '{print $1}' | awk '{print $1}' | xargs brew cask reinstall
fi
done done
else else