Skip to content

Commit

Permalink
Do not require old version in set-versions.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gblewis1 committed Jun 23, 2023
1 parent 75d1cc2 commit a19df64
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions set-versions.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/bash

set -euo pipefail

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand All @@ -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 ====

0 comments on commit a19df64

Please sign in to comment.