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.gstqt5
parent
1a382e983f
commit
d385065f70
|
@ -14,7 +14,8 @@ buildGoModule rec {
|
||||||
# tarball contains multiple files/directories
|
# tarball contains multiple files/directories
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
mkdir ipfs-src
|
mkdir ipfs-src
|
||||||
mv * ipfs-src || true
|
shopt -s extglob
|
||||||
|
mv !(ipfs-src) ipfs-src || true
|
||||||
cd ipfs-src
|
cd ipfs-src
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue