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