Skip to content

Commit dc069d0

Browse files
committed
Automatically create output directory if it doesn't exist
1 parent 11a39b7 commit dc069d0

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)