Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
docker-abuild
Commits
b45a8604
Commit
b45a8604
authored
May 19, 2019
by
Richard Mortier
Browse files
dabuild: per
@tcely
, `mkdir -p` then test for success
parent
96a02d1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
dabuild.in
View file @
b45a8604
...
...
@@ -43,11 +43,11 @@ fi
## check $DABUILD_PACKAGES is a writable directory
ABUILD_PACKAGES
=
${
DABUILD_PACKAGES
:-${
PWD
%/aports*
}
/packages/
${
ABUILD_VERSION
}}
mkdir
-p
$ABUILD_PACKAGES
if
[
!
\(
-d
"
$ABUILD_PACKAGES
"
-a
-w
"
$ABUILD_PACKAGES
"
\)
]
;
then
mkdir
-p
$ABUILD_PACKAGES
\
||
die
"Error: invalid packages directory specified!"
\
"ABUILD_PACKAGES = '
$ABUILD_PACKAGES
'"
\
"DABUILD_PACKAGES = '
$DABUILD_PACKAGES
'"
die
"Error: invalid or unwritable packages directory specified!"
\
"ABUILD_PACKAGES = '
$ABUILD_PACKAGES
'"
\
"DABUILD_PACKAGES = '
$DABUILD_PACKAGES
'"
fi
## setup volumes; use named volumes as cache if desired
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment