diff options
Diffstat (limited to 'scripts/unused-js-functions.sh')
-rwxr-xr-x | scripts/unused-js-functions.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/unused-js-functions.sh b/scripts/unused-js-functions.sh index 311e94aa59..4786bbec91 100755 --- a/scripts/unused-js-functions.sh +++ b/scripts/unused-js-functions.sh @@ -1,10 +1,10 @@ #! /bin/bash -find loleaflet/src/ -name "*.js" -exec grep ': function' \{\} \; | sed -e 's/:.*//' -e 's/^[\t ]*//' -e 's/[\t ]*$//' | grep -v " " | sort | uniq | \ +find browser/src/ -name "*.js" -exec grep ': function' \{\} \; | sed -e 's/:.*//' -e 's/^[\t ]*//' -e 's/[\t ]*$//' | grep -v " " | sort | uniq | \ while read FUNC ; do - NUM=`git grep "\<$FUNC\>" loleaflet/src/ | wc -l` + NUM=`git grep "\<$FUNC\>" browser/src/ | wc -l` #echo "Trying $FUNC: $NUM" if [ "$NUM" = "1" ] ; then - git --no-pager grep "\<$FUNC\>" loleaflet/src/ + git --no-pager grep "\<$FUNC\>" browser/src/ fi done |