Skip to content

Instantly share code, notes, and snippets.

@1951FDG
Created August 7, 2015 10:54
Show Gist options
  • Save 1951FDG/5a070d64dc467482e553 to your computer and use it in GitHub Desktop.
Save 1951FDG/5a070d64dc467482e553 to your computer and use it in GitHub Desktop.
Checking list of included CSS files in bower.json
#!/bin/bash
while read line
do
FILE=$line
if [ ! -e "${1}/${FILE}" ]; then
echo "File not found! - ${FILE}"
fi
done < "${2}"
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment