mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-08-22 19:04:35 +00:00

Since there is a BSD variant of sed that requires a parameter for the -i option provide a sed-inplace wrapper script. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
8 lines
119 B
Bash
Executable File
8 lines
119 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-) ]]; then
|
|
sed -i "$1" "$2"
|
|
else
|
|
sed -i '' "$1" "$2"
|
|
fi
|