Files
Virtnet.bond/vendor/faisal50x/blade-ionicons/bin/compile.sh
2026-03-12 22:47:38 +01:00

27 lines
434 B
Bash

#!/usr/bin/env bash
set -e
DIRECTORY=$(cd `dirname $0` && pwd)
ICONS=$DIRECTORY/../dist
RESOURCES=$DIRECTORY/../resources/svg
echo "Compiling Ionicons..."
for FILE in $ICONS/*; do
FILENAME=${FILE##*/}
if [ "$FILENAME" == ".gitignore" ]
then
break
fi
# Compile icons...
cp $FILE $RESOURCES/${FILENAME}
CLASS='<svg fill="currentColor"'
sed -i '' "s/<svg/$CLASS/" $RESOURCES/${FILENAME}
done
echo "All done!"