diff options
author | Roland Hieber <rhi@pengutronix.de> | 2021-04-11 22:25:18 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-04-23 07:55:37 +0200 |
commit | 65c1a38738aec3c40722f3ee64040da44e35a3a2 (patch) | |
tree | ce13f892de8bbd1dcb5b7160e8829f5dba21e329 /bin | |
parent | 9a3b0cc916621929b1600f0a0322011b3840983a (diff) | |
download | ptxdist-65c1a38738aec3c40722f3ee64040da44e35a3a2.tar.gz ptxdist-65c1a38738aec3c40722f3ee64040da44e35a3a2.tar.xz |
ptxdist: package-info: give better error message without parameters
The current output is not very explanatory:
$ ptxdist package-info
ptxdist: error: please use 'ptxdist' instead of calling make directly.
make: *** [.../ptxdist/rules/other/Toplevel.make:55: all] Error 1
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Message-Id: <20210411202518.31984-2-rhi@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index f5ded8557..13f81674f 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -1886,6 +1886,11 @@ EOF package-info) declare -a pkgs + if [ ${#} -eq 0 ]; then + echo "Usage: package-info <packages...>" + exit 1 + fi + check_config && check_deps && pkgs=( "${@/#/${STATEDIR}/}" ) && |