From a19df64b06b860c2495ca95c463b47194987b57d Mon Sep 17 00:00:00 2001 From: Gavin Lewis Date: Fri, 23 Jun 2023 11:06:37 -0700 Subject: [PATCH] Do not require old version in set-versions.sh --- set-versions.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/set-versions.sh b/set-versions.sh index b121dbe8e..c2bb771aa 100755 --- a/set-versions.sh +++ b/set-versions.sh @@ -1,5 +1,3 @@ -#!/bin/bash - set -euo pipefail DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" @@ -8,16 +6,16 @@ echo WARNING, this will clean and reset the repository in "$DIR" echo Waiting 5 seconds... hit control-C to abort. sleep 5 -OLD_VERSION=$1 -NEW_VERSION=$2 +NEW_VERSION=$1 cd "$DIR" git clean -xdf git reset --hard +OLD_VERSION=$(cat inbm/version.txt) echo $NEW_VERSION >inbm/version.txt mv inbm/packaging/yocto/meta-intel-ese-manageability/recipes-inb/inb/inb_{$OLD_VERSION,$NEW_VERSION}.bb echo ==== echo ==== Remember to update inbm/Changelog.md. -echo ==== +echo ==== \ No newline at end of file