summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2010-10-31 12:45:04 +0100
committerNick Schermer <nick@xfce.org>2010-10-31 12:45:04 +0100
commit6bdbfdf491d3aa61806edc24b6a4cf984083c7ec (patch)
tree0798b16d182bc25b1e3f3c1cce9f04102e6b3482 /scripts
parent0a39faed46ec1a72540649c69efd198a118851e8 (diff)
downloadxfce4-dev-tools-6bdbfdf491d3aa61806edc24b6a4cf984083c7ec.tar.gz
Check if $1 is a file before calling cat (bug #6101).
Diffstat (limited to 'scripts')
-rw-r--r--scripts/xdt-autogen.in.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in
index 74bb2e8..bbfa626 100644
--- a/scripts/xdt-autogen.in.in
+++ b/scripts/xdt-autogen.in.in
@@ -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'
}
##