summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schwager <[email protected]>2012-02-01 22:34:14 (GMT)
committer Daniel Schwager <[email protected]>2012-02-01 22:34:14 (GMT)
commitaca88bc0634c8947b9b24ae63dfecd55c3d93524 (patch)
treebd5137bdab56a4f3ddd0a4eeb17ee5497fbe748f
parent14537d40ca6ba6b35179d22a7e58c09d122ce0e0 (diff)
improvement: check, if opsi file exists in the repos (not checking only the directory)
-rw-r--r--lib/builder-targets.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh
index 0bd09cc..6bd2043 100644
--- a/lib/builder-targets.sh
+++ b/lib/builder-targets.sh
@@ -62,7 +62,7 @@ builder_config() {
builder_prepare() {
# Check if the package is still build
- if [ -z "$OPSI_REPOS_FORCE_UPLOAD" ] && [ -d ${OPSI_REPOS_PRODUCT_DIR} ] ; then
+ if [ -z "$OPSI_REPOS_FORCE_UPLOAD" ] && [ -f "${OPSI_REPOS_PRODUCT_DIR}/${OPSI_REPOS_FILE_PATTERN}.opsi" ] ; then
echo "Directory ${OPSI_REPOS_PRODUCT_DIR} already exists."
exit 1
fi

Powered by Domaintechnik.at | Hosting - Domain - Webspace