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 <matthew.johnson@intel.com>
This commit is contained in:
Matthew Johnson
2018-03-09 11:36:27 -08:00
committed by Kevin Wells
parent cced6a0180
commit 6fa8754a30
+1 -1
View File
@@ -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