From 2fd780e1da5eb12dfc563892da90c74747d1cc03 Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Thu, 28 Nov 2019 15:08:33 +0100 Subject: [PATCH] fix: pkg name and version parsing --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4b4f547..37090da 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ PKG_TARGET=x86_64-unknown-linux-musl PKG_BIN_PATH=./bin -PKG_NAME=$(shell cat Cargo.toml | sed -n 's/name = "\([^}]*\)"/\1/p') -PKG_TAG=$(shell cat Cargo.toml | sed -n 's/version = "\([^}]*\)"/\1/p') +PKG_NAME=$(shell cat Cargo.toml | sed -n 's/name = "\([^}]*\)"/\1/p' | head -n1) +PKG_TAG=$(shell cat Cargo.toml | sed -n 's/version = "\([^}]*\)"/\1/p' | head -n1) ####################################### -- libgit2 1.7.2