mirror of
https://github.com/sbopkg/sbopkg
synced 2024-12-27 09:58:28 +01:00
add directory check for
This commit is contained in:
parent
aec8914cdb
commit
dc4a0f05b9
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue