add directory check for

This commit is contained in:
chess.griffin 2009-01-12 03:46:26 +00:00
parent aec8914cdb
commit dc4a0f05b9

View File

@ -118,6 +118,14 @@ if [ ! -d "$TMP" ]; then
echo
mkdir -p $TMP || exit 1
fi
if [ ! -d "$OUTPUT" ]; then
echo
echo "Creating local package output directory $OUTPUT."
echo
read -s -n 1 -p "Press any key to continue or Ctrl-C to exit."
echo
mkdir -p $OUTPUT || exit 1
fi
# Let's catch Control-C and try to exit cleanly. Please see the
# comment to the control_c function, below.
trap 'control_c' 2 14 15