diff options
author | Renato Botelho <renato@netgate.com> | 2016-04-07 10:31:00 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-04-07 10:31:00 -0300 |
commit | d1e21523c15ab6fb75a3cb498a2849758ea577ad (patch) | |
tree | e201cc650b2d1a223e6f7fa1b0e0c6aed81e22fc | |
parent | 3965deb1d9eb77706150473d333de1ebd28f9bec (diff) | |
download | pfsense-d1e21523c15ab6fb75a3cb498a2849758ea577ad.zip pfsense-d1e21523c15ab6fb75a3cb498a2849758ea577ad.tar.gz |
Create target dir when it doesn't exist
-rw-r--r-- | tools/builder_common.sh | 3 |
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!" |