Merge pull request #27 from pingiun/patch-1

Add space between sed option if OSX detected
This commit is contained in:
James Tomasino 2019-01-15 19:54:51 -05:00 committed by GitHub
commit 1c66e9297d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

6
burrow
View File

@ -179,7 +179,11 @@ update_gopher_root () {
"$newdate" \
"$config_gopher_server" \
"$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 () {