mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-12 21:10:21 +03:00
add directory check for
This commit is contained in:
parent
aec8914cdb
commit
dc4a0f05b9
@ -118,6 +118,14 @@ if [ ! -d "$TMP" ]; then
|
|||||||
echo
|
echo
|
||||||
mkdir -p $TMP || exit 1
|
mkdir -p $TMP || exit 1
|
||||||
fi
|
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
|
# Let's catch Control-C and try to exit cleanly. Please see the
|
||||||
# comment to the control_c function, below.
|
# comment to the control_c function, below.
|
||||||
trap 'control_c' 2 14 15
|
trap 'control_c' 2 14 15
|
||||||
|
Loading…
Reference in New Issue
Block a user