From 11fe7bb7840e94c683a6fb2a9545e790b5391e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Mon, 16 Oct 2017 15:52:42 +0200 Subject: [PATCH] Updating the update script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Ĺ abata --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7cc765c..5cfaa3f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ SOURCE = https://raw.githubusercontent.com/fedora-modularity/baseruntime-package-lists/master/data/Fedora/devel/hp MODULE = $(shell pwd | sed 's/^.*\///') +BRANCH = $(shell git rev-parse --abbrev-ref HEAD | sed -e 's/^/./' -e 's/^\.master$$//') update: - curl $(SOURCE)/$(MODULE).yaml -o $(MODULE).yaml + curl $(SOURCE)/$(MODULE)$(BRANCH).yaml -o $(MODULE).yaml