diff options
author | Luflosi <luflosi@luflosi.de> | 2020-09-23 12:06:44 +0200 |
---|---|---|
committer | Luflosi <luflosi@luflosi.de> | 2020-09-23 12:57:46 +0200 |
commit | d385065f705d10ce7738ae4f025fa8a142d3a26c (patch) | |
tree | f14d8100b124078ef49f698c7d98f2cd95bf830e /pkgs/applications/networking/ipfs | |
parent | 1a382e983f9db3ebfc8cf50c2aa036452ef931ee (diff) |
ipfs: avoid warning during build when moving directory
Trying to move a directory into itself will result in a warning: mv: cannot move 'ipfs-src' to a subdirectory of itself, 'ipfs-src/ipfs-src' This can be prevented by excluding that directory.
Diffstat (limited to 'pkgs/applications/networking/ipfs')
-rw-r--r-- | pkgs/applications/networking/ipfs/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/networking/ipfs/default.nix b/pkgs/applications/networking/ipfs/default.nix index a91058af89084..5d1289edc3337 100644 --- a/pkgs/applications/networking/ipfs/default.nix +++ b/pkgs/applications/networking/ipfs/default.nix @@ -14,7 +14,8 @@ buildGoModule rec { # tarball contains multiple files/directories postUnpack = '' mkdir ipfs-src - mv * ipfs-src || true + shopt -s extglob + mv !(ipfs-src) ipfs-src || true cd ipfs-src ''; |