diff options
author | Guido Zgraggen <zgraggen@gmail.com> | 2016-04-22 16:51:49 -0700 |
---|---|---|
committer | Guido Zgraggen <zgraggen@gmail.com> | 2016-04-22 16:51:49 -0700 |
commit | 6ea0ae58af611ab30c42e2e51f3a70141e93a9a9 (patch) | |
tree | 75c76f2c5668cf5c8d413013eed529bcc92e87f0 /pkgs/build-support/fetchgit/nix-prefetch-git | |
parent | ae0a64cf2c04b45fcf135e27be114debfbfe902d (diff) |
nix-prefetch-git: create parent directories
Diffstat (limited to 'pkgs/build-support/fetchgit/nix-prefetch-git')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index 9352757ea806..80544b745177 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -343,7 +343,7 @@ fi if test -n "$builder"; then test -n "$out" -a -n "$url" -a -n "$rev" || usage - mkdir $out + mkdir -p $out clone_user_rev "$out" "$url" "$rev" else if test -z "$hashType"; then @@ -368,7 +368,7 @@ else trap "rm -rf \"$tmpPath\"" EXIT tmpFile="$tmpPath/$(url_to_name "$url" "$rev")" - mkdir "$tmpFile" + mkdir -p "$tmpFile" # Perform the checkout. clone_user_rev "$tmpFile" "$url" "$rev" |