summaryrefslogtreecommitdiff
path: root/devel/got/files/patch-regress_cmdline_common.sh
blob: 52633c021556e3384c086dbbae3a05f9c5aa6da9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- regress/cmdline/common.sh.orig	2022-10-24 22:00:47 UTC
+++ regress/cmdline/common.sh
@@ -27,6 +27,20 @@ export GOT_IGNORE_GITCONFIG=1
 
 export MALLOC_OPTIONS=S
 
+# compat wrapper
+sed()
+(
+	for i; do
+		arg=$1
+		shift
+		case $arg in
+		-i)	set - "$@" "$arg" '' ;;
+		*)	set - "$@" "$arg" ;;
+		esac
+	done
+	exec sed "$@"
+)
+
 git_init()
 {
 	git init -q "$1"