summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-04-07 10:31:00 -0300
committerRenato Botelho <renato@netgate.com>2016-04-07 10:31:00 -0300
commitd1e21523c15ab6fb75a3cb498a2849758ea577ad (patch)
treee201cc650b2d1a223e6f7fa1b0e0c6aed81e22fc
parent3965deb1d9eb77706150473d333de1ebd28f9bec (diff)
downloadpfsense-d1e21523c15ab6fb75a3cb498a2849758ea577ad.zip
pfsense-d1e21523c15ab6fb75a3cb498a2849758ea577ad.tar.gz
Create target dir when it doesn't exist
-rw-r--r--tools/builder_common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh
index 531ce30..b47463e 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -1086,6 +1086,9 @@ clean_builder() {
}
clone_directory_contents() {
+ if [ ! -e "$2" ]; then
+ mkdir -p "$2"
+ fi
if [ ! -d "$1" -o ! -d "$2" ]; then
if [ -z "${LOGFILE}" ]; then
echo ">>> ERROR: Argument $1 supplied is not a directory!"
OpenPOWER on IntegriCloud