Last active
January 7, 2019 10:21
-
-
Save giulio92/169f6e896190dec995b2242990d566b6 to your computer and use it in GitHub Desktop.
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/bash | |
DIRECTORY=$1 | |
echo "--------------------------------" | |
echo " Running script in:<$DIRECTORY> " | |
echo " <$DIRECTORY> " | |
echo "--------------------------------" | |
echo "Processing asset:" | |
find "$DIRECTORY" -name '*png' -print0 | while read -d $'\0' file; | |
do | |
echo "$file" | |
sips -m "/System/Library/Colorsync/Profiles/sRGB Profile.icc" "$file" --out "$file" | |
done | |
echo "--------------------------------" | |
echo " Script completed successfully " | |
echo "--------------------------------" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment