Skip to content

Commit b9d2a7c

Browse files
authored
Merge pull request #23 from akx/auto-create-out-dir
Automatically create output directory if it doesn't exist
2 parents 11a39b7 + dc069d0 commit b9d2a7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontends/containerize

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ fi
6868

6969
source $CW_BUILD_TMPDIR/_vars.sh
7070
if [[ ! -d "$CW_INSTALLATION_PREFIX" ]];then
71-
print_err "Installation dir $CW_INSTALLATION_PREFIX does not exist" ; false
71+
print_info "Installation dir $CW_INSTALLATION_PREFIX does not exist, creating it for you"
72+
mkdir -p "$CW_INSTALLATION_PREFIX"
7273
fi
7374
if [[ ! -w "$CW_INSTALLATION_PREFIX" || ! -x "$CW_INSTALLATION_PREFIX" ]];then
7475
print_err "Installation dir $CW_INSTALLATION_PREFIX is not writable" ; false

0 commit comments

Comments
 (0)