mirror of https://git.envs.net/envs/burrow.git
Add platform check for sed command
This checks if the current platform is macOS (darwin), which uses a sed version that accepts arguments differently
This commit is contained in:
parent
986f3df957
commit
c2eea80929
6
burrow
6
burrow
|
@ -166,7 +166,11 @@ update_gopher_root () {
|
||||||
"$newdate" \
|
"$newdate" \
|
||||||
"$config_gopher_server" \
|
"$config_gopher_server" \
|
||||||
"$config_gopher_port")
|
"$config_gopher_port")
|
||||||
sed -i '' "s|.*Last\\ Updated:.*|${newString}|" "${config_dir_gopher}gophermap"
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
|
sed -i '' "s|.*Last\\ Updated:.*|${newString}|" "${config_dir_gopher}gophermap"
|
||||||
|
else
|
||||||
|
sed -i'' "s|.*Last\\ Updated:.*|${newString}|" "${config_dir_gopher}gophermap"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_directory () {
|
check_directory () {
|
||||||
|
|
Loading…
Reference in New Issue