aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xextra/shared-mime-info/build3
1 files changed, 2 insertions, 1 deletions
diff --git a/extra/shared-mime-info/build b/extra/shared-mime-info/build
index d9c2edf1..d69c0330 100755
--- a/extra/shared-mime-info/build
+++ b/extra/shared-mime-info/build
@@ -46,7 +46,8 @@ cat << EOF > src/config.h
EOF
# Fix config.h include.
-sed -i 's/<config.h>/"config.h"/' src/update-mime-database.c
+sed 's/<config.h>/"config.h"/' src/update-mime-database.c > _
+cat _ > src/update-mime-database.c; rm -f _
# shellcheck disable=2046
"${CC:-gcc}" -o "$1/usr/bin/update-mime-database" \