Last active
August 29, 2015 14:13
-
-
Save dive/dbf78ea39f9b9f67b603 to your computer and use it in GitHub Desktop.
Quick fix for Google Drive icon for dark menu bar (OS X 10.10)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
GOOGLE_DRIVE_DEFAULT_PATH=/Applications/Google\ Drive.app/Contents/Resources | |
# backup | |
find "$GOOGLE_DRIVE_DEFAULT_PATH"/ -type f -name 'mac-normal*.png' -exec cp -v '{}' '{}'.backup \; | |
# copy all needed files to tmp | |
cp -f -v "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal*.png /tmp/ | |
# rename and put them back | |
cp -f -v /tmp/mac-normal.png "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal-inverse.png | |
cp -f -v /tmp/mac-normal@2x.png "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal-inverse@2x.png | |
cp -f -v /tmp/mac-normal-inverse.png "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal.png | |
cp -f -v /tmp/mac-normal-inverse@2x.png "$GOOGLE_DRIVE_DEFAULT_PATH"/mac-normal@2x.png | |
echo '===============================' | |
echo 'You should restart Google Drive' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment