Last active
August 27, 2021 21:49
-
-
Save ScriptAutomate/8794d3b6d20e73f66afd548066e9c9bb to your computer and use it in GitHub Desktop.
Search for automodule docs generations, in Python projects, that are referrencing non-existant files in Salt repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTOMODULES=`grep -rn ".. automodule:: " doc/ | grep -v "_templates" | cut -d' ' -f3` | |
for MODULE in $AUTOMODULES; do | |
MODULE_FILE="$(echo $MODULE | sed 's:\.:\/:g').py" | |
if [[ ! -f "$MODULE_FILE" ]]; then | |
echo "$MODULE_FILE" | |
echo "--------" | |
echo "ERROR: Attempting to import $MODULE_FILE, which does not exist." | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment