Skip to content

Commit 4dcb5ed

Browse files
mkrzewicmpatrascoiu
authored andcommitted
Use sed in a more POSIX compliant way
1 parent ab8dfc5 commit 4dcb5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patch-curl-clock-gettime.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ -f lib/curl_config.h ]; then
1616

1717
if [ $? -ne 0 ]; then
1818
grep "HAVE_CLOCK_GETTIME" lib/curl_config.h
19-
sed -i 's|^#define HAVE_CLOCK_GETTIME_MONOTONIC 1|// #define HAVE_CLOCK_GETTIME_MONOTONIC 1|g' lib/curl_config.h
19+
sed -i "" 's|^#define HAVE_CLOCK_GETTIME_MONOTONIC 1|// #define HAVE_CLOCK_GETTIME_MONOTONIC 1|g' lib/curl_config.h
2020
grep "HAVE_CLOCK_GETTIME" lib/curl_config.h
2121
fi
2222

0 commit comments

Comments
 (0)