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\ )