Merge pull request #300699 from superherointj/etcd-fix-update-script

This commit is contained in:
Sandro 2024-04-02 14:46:41 +02:00 committed by GitHub
commit 215881dc2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,11 +3,10 @@
set -x -eu -o pipefail
ETCD_VERSION_MAJOR_MINOR=`basename "$PWD"`
ETCD_PATH="$(dirname "$0")"
ETCD_VERSION_MAJOR_MINOR="$(basename $ETCD_PATH)"
ETCD_PKG_NAME=etcd_$(echo $ETCD_VERSION_MAJOR_MINOR | sed 's/[.]/_/g')
NIXPKGS_PATH="$(git rev-parse --show-toplevel)"
ETCD_PATH="$(dirname "$0")"
OLD_VERSION="$(nix-instantiate --eval -E "with import $NIXPKGS_PATH {}; \
$ETCD_PKG_NAME.version or (builtins.parseDrvName $ETCD_PKG_NAME.name).version" | tr -d '"')"