mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 23:32:10 -05:00
Added check to ensure volume is directory
ADDED - Present user with error when attempting to pass non-directory as volume
This commit is contained in:
parent
93bf4a79d4
commit
3cb5a0b6fd
1 changed files with 5 additions and 0 deletions
|
@ -597,6 +597,11 @@ GetGitHubVars() {
|
|||
GITHUB_WORKSPACE="$DEFAULT_WORKSPACE"
|
||||
fi
|
||||
|
||||
if [ ! -d "$GITHUB_WORKSPACE" ]; then
|
||||
echo -e "${NC}${B[R]}${F[W]}ERROR:${NC} Provided volume is not a directory!${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Linting all files in mapped directory:[$DEFAULT_WORKSPACE]"
|
||||
|
||||
# No need to touch or set the GITHUB_SHA
|
||||
|
|
Loading…
Reference in a new issue