aboutsummaryrefslogtreecommitdiff
path: root/extra/shared-mime-info/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-01-29 20:08:08 +0300
committerCem Keylan <cem@ckyln.com>2020-01-29 20:08:08 +0300
commit9f870cb6566cc7055a926dd6387795055783635e (patch)
treea5cf18668446178e712dbaf34c4d77b11dda01a9 /extra/shared-mime-info/build
parentb1b01cd6a1c05b25e3511e7e4057d28d9a3944c9 (diff)
downloadrepository-9f870cb6566cc7055a926dd6387795055783635e.tar.gz
shared-mime-info: remove -i from sed on build
Diffstat (limited to 'extra/shared-mime-info/build')
-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 58dddbe2..4a2c0ae7 100755
--- a/extra/shared-mime-info/build
+++ b/extra/shared-mime-info/build
@@ -46,7 +46,8 @@ cat << EOF > config.h
EOF
# Fix config.h include.
-sed -i 's/<config.h>/"config.h"/' update-mime-database.c
+sed 's/<config.h>/"config.h"/' update-mime-database.c > update-mime-database.c.bak
+mv update-mime-database.c.bak update-mime-database.c
# shellcheck disable=2046
"${CC:-gcc}" -o "$1/usr/bin/update-mime-database" \