The current output is not very explanatory:

    $ ptxdist drop

    rm: cannot remove '.../platform-foo/state/': Is a directory
    dropping

Signed-off-by: Roland Hieber <r...@pengutronix.de>
---
 bin/ptxdist | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/ptxdist b/bin/ptxdist
index 248b0473df0f..75e503fe4767 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -966,6 +966,11 @@ clean() {
 drop() {
        local statefile
 
+       if [ -z "${1}" ]; then
+               echo "Usage: drop <package>.<stage>"
+               exit 1
+       fi
+
        if [ -z "${2}" ]; then
                statefile="${1}"
        else
-- 
2.29.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to