Files
gns3-gui/scripts/unused_resource_detector.sh

15 lines
278 B
Bash
Raw Permalink Normal View History

2016-06-28 16:56:15 +02:00
#!/bin/bash
#
# Run this script to see if a ressource is used in the code
#
for line in $(find resources -type f -not -path '*/\.*' -exec basename {} \; )
do
grep -R "$line" gns3 > /dev/null
if [ $? -eq 1 ]
then
echo "Unused ressource $line"
fi
done