samba/script/find_python.sh

10 lines
131 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 1 ]; then
echo "$0: <installdir>"
exit 1
fi
installdir=$1
exit $(find ${installdir} -name \*.py | wc -l)