Skip to content
Snippets Groups Projects
Commit c30b63d8 authored by Jan Frenzel's avatar Jan Frenzel
Browse files

Corrected wrong grep expression in check-bash-syntax.sh.

parent f37730f5
No related branches found
No related tags found
3 merge requests!446docs: Add Jupyter Teaching Example,!428Automated merge from preview to main,!425Reduce number of spelling mistakes
...@@ -47,12 +47,12 @@ branch="origin/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-preview}" ...@@ -47,12 +47,12 @@ branch="origin/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-preview}"
if [ $all_files = true ]; then if [ $all_files = true ]; then
echo "Search in all bash files." echo "Search in all bash files."
files=`git ls-tree --full-tree -r --name-only HEAD $basedir/docs/ | grep .sh || true` files=`git ls-tree --full-tree -r --name-only HEAD $basedir/docs/ | grep '\.sh$' || true`
elif [[ ! -z $file ]]; then elif [[ ! -z $file ]]; then
files=$file files=$file
else else
echo "Search in git-changed files." echo "Search in git-changed files."
files=`git diff --name-only "$(git merge-base HEAD "$branch")" | grep .sh || true` files=`git diff --name-only "$(git merge-base HEAD "$branch")" | grep '\.sh$' || true`
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment