From e382fc1cf297db85f17c67c32920b6c84211da33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Mon, 28 Mar 2011 16:04:39 -0300 Subject: Check if we're on a PKGBUILD dir --- fullpkg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'fullpkg') diff --git a/fullpkg b/fullpkg index b75bf32..434b793 100755 --- a/fullpkg +++ b/fullpkg @@ -4,9 +4,13 @@ # * Detect circular builds # * Detect pkgnames by provides, replaces, etc. instead of dir tree +[[ ! -r PKGBUILD ]] && { + echo "This isn't a build directory" + exit 1 +} -tmp_dir=$(mktemp -d) -queue_file=$(mktemp) +tmp_dir=$(mktemp -d /tmp/$(basename $PWD).XXXXXX) +queue_file=$(mktemp /tmp/queue.XXXXXX) [[ ! -w $queue_file ]] && exit 1 source /etc/makepkg.conf -- cgit v1.2.3