Skip to content

Commit

Permalink
ipfs: avoid warning during build when moving directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Luflosi committed Sep 23, 2020
1 parent 1a382e9 commit d385065
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/applications/networking/ipfs/default.nix
Expand Up @@ -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
'';

Expand Down

0 comments on commit d385065

Please sign in to comment.