From 9620ac2aaef48471f3f78c607e847fce3c33eff9 Mon Sep 17 00:00:00 2001 From: Petr Šabata Date: Oct 16 2017 11:44:07 +0000 Subject: Update the update script Signed-off-by: Petr Šabata --- 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