1951FDG
8/7/2015 - 10:54 AM

Checking list of included CSS files in bower.json

Checking list of included CSS files in bower.json

copy text: bower.json
go to: https://jqplay.org/
apply filter: .overrides["semantic-ui"].main[]
manipulate text output: remove double quotes and terminate with newline
save to file 'filelist.txt' in root directory of file: filetest.sh
cd to root directory of file: filetest.sh
run script: ./filetest.sh ~/Developer/SixtyFourWeb/bower_components/semantic-ui filelist.txt

#!/bin/bash
while read line
do
    FILE=$line
	if [ ! -e "${1}/${FILE}" ]; then
    	echo "File not found! - ${FILE}"
	fi
    
done < "${2}"