Skip to content
Snippets Groups Projects
Commit 6bdbfdf4 authored by Nick Schermer's avatar Nick Schermer
Browse files

Check if $1 is a file before calling cat (bug #6101).

parent 0a39faed
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ fi
##
parse_configure_subdirs()
{
cat "$1" | tr '\\n\\t\\\\' ' ' | sed -ne 's|.*AC_CONFIG_SUBDIRS(\[\{0,1\}\([[:alnum:]_ @/-]\{1,\}\).*|\1|p'
test -f "$1" && cat "$1" | tr '\\n\\t\\\\' ' ' | sed -ne 's|.*AC_CONFIG_SUBDIRS(\[\{0,1\}\([[:alnum:]_ @/-]\{1,\}\).*|\1|p'
}
##
......
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