From 11fe7bb7840e94c683a6fb2a9545e790b5391e26 Mon Sep 17 00:00:00 2001 From: Petr Šabata Date: Oct 16 2017 13:52:42 +0000 Subject: Updating 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