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
Luflosi 2020-09-23 12:06:44 +02:00
parent 1a382e983f
commit d385065f70
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0
1 changed files with 2 additions and 1 deletions

View File

@ -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
'';