summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 1c0254c..7b59e91 100755
--- a/build.sh
+++ b/build.sh
@@ -4,14 +4,14 @@ set -e
cd $(dirname -- "$0")
-PACKAGE=$1
+package=$1
-if [ -z "$PACKAGE" -o ! -d "$PACKAGE" ]; then
+if [ ! -f "./$package/PKGBUILD" ]; then
echo "invalid package" 1>&2
exit 1
fi
-cd $PACKAGE
+cd $package
export PATH=/usr/bin:$PATH