From f3a920b62777b1fedb8e2b46833df1c69a3dd6ae Mon Sep 17 00:00:00 2001 From: Pat Riehecky Date: Jun 11 2014 17:31:34 +0000 Subject: Fixed so it works on kpatch golang-* --- diff --git a/get_sources.sh b/get_sources.sh index 24e507c..ab816f2 100755 --- a/get_sources.sh +++ b/get_sources.sh @@ -19,10 +19,11 @@ if [ -f /etc/centos-git-common ]; then . /etc/centos-git-common fi -if [ ! -e ${f} ] || [ ! -d .git ] || [ ! -d SOURCES ]; then +if [ ! -e ${f} ] || [ ! -d .git ] || [ ! -d SPECS ]; then echo 'You need to run this from inside a sources git repo' exit 1 fi +mkdir -p SOURCES br=$(cat .git/HEAD |awk -F'/' '{print $3}' ) while read a ; do fsha=$( echo ${a} | cut -f1 -d\ )