copy-builtin: handle missing .gitignore

acfc4944d0 broke copy-builtin in
release tarballs, because those do not contain .gitignore file.
Adding -f to rm call will make it return 0 even if file does not exist.

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Closes #11456
This commit is contained in:
Georgy Yakovlev 2021-01-12 17:18:55 -08:00 committed by GitHub
parent 2bc66898b7
commit 2eb12c712b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ rm -rf "$KERNEL_DIR/include/zfs" "$KERNEL_DIR/fs/zfs"
cp --recursive include "$KERNEL_DIR/include/zfs"
cp --recursive module "$KERNEL_DIR/fs/zfs"
cp zfs_config.h "$KERNEL_DIR/include/zfs/"
rm "$KERNEL_DIR/include/zfs/.gitignore"
rm -f "$KERNEL_DIR/include/zfs/.gitignore"
for MODULE in "${MODULES[@]}"
do