Skip to content

Instantly share code, notes, and snippets.

@giulio92
Last active January 7, 2019 10:21
Show Gist options
  • Save giulio92/169f6e896190dec995b2242990d566b6 to your computer and use it in GitHub Desktop.
Save giulio92/169f6e896190dec995b2242990d566b6 to your computer and use it in GitHub Desktop.
#!/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