Allow using icons without custom class
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
7
app/views/icons/foo.sh
Normal file
7
app/views/icons/foo.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
for file in *.erb; do
|
||||
if [ -f "$file" ]; then
|
||||
sed -i'.bak' 's/<%= *custom_class *%>/<%= local_assigns[:custom_class] %>/g' "$file"
|
||||
echo "Updated $file"
|
||||
rm "${file}.bak"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user