diff --git a/publish_new_release.sh b/publish_new_release.sh index 6c7ab7b..472561a 100755 --- a/publish_new_release.sh +++ b/publish_new_release.sh @@ -24,6 +24,11 @@ then apt install -y ${#MISSING_PACKAGES[@]} fi +cd $ROOT_DIR +echo "Update git repo:" +git pull +echo "done." + LATEST="$1" if [ -z "$LATEST" ] @@ -40,7 +45,6 @@ echo "Press [enter] to create and publish this new release" read echo "Create new release..." -cd $ROOT_DIR echo -n "$LATEST" > last_release.txt /usr/bin/git add last_release.txt /usr/bin/git commit -m "Release $LATEST"