feather/bin/build-manifest.sh

16 lines
227 B
Bash
Raw Normal View History

2017-05-13 21:30:06 +03:00
#!/usr/bin/env bash
cd ./icons
numFiles=$(ls -1 *.svg | wc -l)
count=0
echo [
for icon in $(ls *.svg)
do
count=$((count + 1))
echo -n " "\"${icon%.svg}\"
(($count == $numFiles)) && echo "" || echo ,
done
echo ]