feather/bin/build-manifest.sh
2017-05-13 11:30:06 -07:00

16 lines
227 B
Bash
Executable File

#!/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 ]