Skip to content

Commit

Permalink
alpine-build-pkg: better handling of non-existing repo dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostbar committed Feb 21, 2016
1 parent e9daca8 commit 2b729d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions alpine-build-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Options:
--version Show versions.
"
declare version="
Version: 2.1.0.
Version: 2.1.1.
Licensed under the MIT terms.
"

Expand All @@ -51,7 +51,10 @@ evaluate_build_options() {
-v)
image_ver="$2"; shift; shift;;
-r)
[[ -d "$2" ]] && repo_dir=$(cd "$2" && pwd);
if [[ ! -d "$2" ]]; then
mkdir -p "$2"
fi
repo_dir=$(cd "$2" && pwd)
shift; shift;;
-c)
[[ -d "$2" ]] && conf_dir=$(cd "$2" && pwd);
Expand Down

0 comments on commit 2b729d3

Please sign in to comment.