From: Jeremy Kerr Date: Wed, 2 Sep 2015 15:10:50 +0000 (+0800) Subject: pb-plugin: Fix invalid command reference X-Git-Tag: v1.0.0~49^2~1 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=e22d1340b96d3e22a92e8fcaabdcd2d494c1bea9;p=petitboot pb-plugin: Fix invalid command reference We had the old code for using 'run'. Also, fix the error we see when issuing an invalid command. Signed-off-by: Jeremy Kerr --- diff --git a/utils/pb-plugin b/utils/pb-plugin index a22e8c4..fcb7383 100755 --- a/utils/pb-plugin +++ b/utils/pb-plugin @@ -237,7 +237,7 @@ do_scan_mount() plugin_info printf "\n" printf "To run this plugin:\n" - printf " $0 run $plugin_path\n" + printf " $0 install $plugin_path\n" printf "\n" ) if [ $? = 0 ] @@ -816,7 +816,7 @@ __test) exit 1 ;; *) - echo "Invalid command: $s" >&2 + echo "Invalid command: $1" >&2 usage exit 1 esac