Skip to content

Commit 08e30d5

Browse files
committed
Don't spam a bunch of grep errors if there is no src dir
1 parent 0cfeb8d commit 08e30d5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/include/audit_code.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,12 @@ function audit_code() {
291291
then
292292
return
293293
fi
294+
if [ ! -d "$CFG_GIT_PATH_MOD/src" ]
295+
then
296+
wrn "Warning: skipping code audit because no source code was found"
297+
wrn " missing directory $CFG_GIT_PATH_MOD/src"
298+
return
299+
fi
294300
(
295301
cd "$CFG_GIT_PATH_MOD" || exit 1
296302
audit_code_rcon

0 commit comments

Comments
 (0)