aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/builder/build-install4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/builder/build-install b/scripts/builder/build-install
index ed8232a..79911e5 100755
--- a/scripts/builder/build-install
+++ b/scripts/builder/build-install
@@ -3,7 +3,9 @@
echo "installing: ${1}"
eval $(build query --environ "${1}")
-[ -f "${BUILDER_ATFDIR}/${CATEGOR}/${NAME}-${VERSION}.${ARCHIVE_FORMAT}" ] || die "archive does not exist for package '${NAME}'"
+if [ ! -f "${BUILDER_ATFDIR}/${CATEGORY}/${NAME}-${VERSION}.${ARCHIVE_FORMAT}" ]; then
+ die "archive does not exist for package '${NAME}'"
+fi
if [ ! -d "${SYSROOT}" ]; then
mkdir -p "${SYSROOT}" || die "failed to create system root @ '${SYSROOT}'"
fi