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

GNU/Hurd systems use the same sed/sha1sum/state command lines as Linux and Cygwin. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
8 lines
123 B
Bash
Executable File
8 lines
123 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ "$(uname -s)" =~ (Linux|CYGWIN_NT-|GNU) ]]; then
|
|
sed -i "$1" "$2"
|
|
else
|
|
sed -i '' "$1" "$2"
|
|
fi
|