summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-02-03 11:02:15 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2010-02-03 11:02:15 +0100
commitc5fea7bdafb25403e7cf73044244ad75e6a514b3 (patch)
tree6bca854453b521caef7e5e4483d3d793cc219ca3 /bin
parent5a4bf8f43d1bc3796a9c9aec7ece43dc4dba6421 (diff)
downloadptxdist-c5fea7bdafb25403e7cf73044244ad75e6a514b3.tar.gz
ptxdist-c5fea7bdafb25403e7cf73044244ad75e6a514b3.tar.xz
[ptxdist] let "newpackage help" work without a rules directory
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index 997821ebb..4ed9e239e 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1875,7 +1875,7 @@ parse_second()
echo "${PROMPT}'newpackage' directly."
fi
- if [ \! -d "rules" ]; then
+ if [ \! -d "rules" -a "${1}" != "help" ]; then
echo
echo "${PROMPT}error: no rules/ directory found"
echo "${PROMPT}error: please call from a workspace or ptxdist directory"