Skip to content
Snippets Groups Projects
Commit b98454b8 authored by Tom Scogland's avatar Tom Scogland Committed by Thomas R. W. Scogland
Browse files

fixing regular expression matches to use regular expression syntax instead of globbing syntax

parent e64c0f4e
Branches
Tags
No related merge requests found
......@@ -64,7 +64,7 @@ function spack {
done
# h and V flags don't require further output parsing.
if [[ "$_sp_flags" =~ *h* || "$_sp_flags" =~ *V* ]]; then
if [[ (! -z "$_sp_flags") && ("$_sp_flags" =~ '.*h.*' || "$_sp_flags" =~ '.*V.*') ]]; then
command spack $_sp_flags "$@"
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment