scripts/install: exit if $INSTALL not set

This commit is contained in:
Stefan Saraev 2013-07-12 15:37:01 +03:00
parent d00913d2d6
commit 563d2e71cb

View File

@ -30,6 +30,10 @@ if [ -z "$1" ]; then
exit 1
fi
if [ -z "$INSTALL" ] ; then
echo "error: '\$INSTALL' not set! this script is not intended to be run manually"
exit 1
fi
mkdir -p $STAMPS_INSTALL/$1
if [ -f $STAMP -a $PKG_DIR/install -nt $STAMP ]; then