From 6fa8754a30ba668e5f53387f5447928873e11ea5 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Fri, 9 Mar 2018 10:55:42 -0800 Subject: [PATCH] Add format flag to update in validate-swupd.sh This is necessary for actually performing the update against the correct format. Without it the server version will be detected as -1. While I'm here, fix the quoting for this line. Signed-off-by: Matthew Johnson --- validate-swupd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate-swupd.sh b/validate-swupd.sh index be25327..5ddacde 100755 --- a/validate-swupd.sh +++ b/validate-swupd.sh @@ -131,7 +131,7 @@ for i in $(ls update/www); do set -x echo $next | sudo tee $(pwd)/update/www/version/format$3/latest - swupd update --path os-$i-install -u file://$(pwd)/update/www -C $(pwd)/Swupd_Root.pem + swupd update --path "os-$i-install" -F "$3" -u "file://$PWD/update/www" -C "$PWD/Swupd_Root.pem" if [[ $? -ne 0 ]]; then popd exit 1