Fix update script

This commit is contained in:
Fabian Ising
2025-10-27 09:54:18 +01:00
parent ff125f4c7a
commit c90a8a783a
2 changed files with 7 additions and 7 deletions

0
compile_ycm.sh Normal file → Executable file
View File

View File

@@ -11,10 +11,10 @@ function set_permissions {
echo "----------"
echo "Disabling Quarantine for Casks ..."
echo "----------"
find $PREFIX/Caskroom -name *.app -exec bash -c "xattr -d com.apple.quarantine {} 2> /dev/null" \;
find $PREFIX/Caskroom -type f -perm +111 -exec bash -c "xattr -d com.apple.quarantine {} 2> /dev/null" \;
find /Applications/ -name *.app -exec bash -c 'xattr -d com.apple.quarantine "{}" 2> /dev/null' \;
find /Applications/ -type f -perm +111 -exec bash -c 'xattr -d com.apple.quarantine "{}" 2> /dev/null' \;
sudo find $PREFIX/Caskroom -name *.app -exec bash -c "xattr -d com.apple.quarantine {} 2> /dev/null" \;
sudo find $PREFIX/Caskroom -type f -perm +111 -exec bash -c "xattr -d com.apple.quarantine {} 2> /dev/null" \;
sudo find /Applications/ -name *.app -exec bash -c 'xattr -d com.apple.quarantine "{}" 2> /dev/null' \;
sudo find /Applications/ -type f -perm +111 -exec bash -c 'xattr -d com.apple.quarantine "{}" 2> /dev/null' \;
}
function software_update {
@@ -29,18 +29,18 @@ function update_brew {
echo "Updating brew software"
echo "----------"
brew update
brew upgrade
sudo -u $USER brew upgrade
echo "----------"
echo "Updating casks"
echo "----------"
brew upgrade --cask --greedy --verbose
sudo -u $USER brew upgrade --cask --greedy --verbose
}
function cleanup {
echo "----------"
echo "Running cleanup"
echo "----------"
brew cleanup -s
sudo -u $USER brew cleanup -s
}
function diagnostics {