From c1073a9b22fed4eee844ae77f0b49932c653a038 Mon Sep 17 00:00:00 2001 From: Romedius Weiss Date: Tue, 4 Jan 2022 19:41:59 +0100 Subject: [PATCH] test pass --- script/current/replace_slugs2.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 script/current/replace_slugs2.sh diff --git a/script/current/replace_slugs2.sh b/script/current/replace_slugs2.sh new file mode 100755 index 0000000..8213016 --- /dev/null +++ b/script/current/replace_slugs2.sh @@ -0,0 +1,21 @@ +sed -i \ +-e 's/"world:\\\/\\\/cccsbg\\\/\(.*\)"/"\\\/_\\\/global\\\/finga.github.io\\\/rc3-cccsbg\\\/\1"/g' \ +-e 's/"world:\\\/\\\/devlol\\\/\(.*\)"/"\\\/_\\\/global\\\/devlol-systems.pages.devlol.org\\\/vspace-workadv\\\/\1"/g' \ +-e 's/"world:\\\/\\\/grandgarage\\\/\(.*\)"/"\\\/_\\\/global\\\/grand-garage.github.io\\\/gg-workadventure\\\/\1"/g' \ +-e 's/"world:\\\/\\\/Metalab\\\/\(.*\)"/"\\\/_\\\/global\\\/metalab.github.io\\\/maptest\\\/\1"/g' \ +-e 's/"world:\\\/\\\/realraum\\\/\(.*\)"/"\\\/_\\\/global\\\/realraum.github.io\\\/workadventur3space\\\/\1"/g' \ +-e 's/"world:\\\/\\\/steyr-werke\\\/\(.*\)"/"\\\/_\\\/global\\\/steyr-werke.gitlab.io\\\/workadventure-stw\\\/\1"/g' \ +-e 's/"world:\\\/\\\/chaoszone\\\/\(.*\)"/"\\\/_\\\/global\\\/raw.githubusercontent.com\\\/die3ungleichen\\\/2D-Welt-thueringen\\\/main\\\/\1"/g' \ +-e 's/"world:\\\/\\\/ccc-basel\\\/\(.*\)"/"\\\/_\\\/global\\\/rc3.ccc-basel.ch\\\/\1"/g' \ +$@ +for f in $@ +do + tmp=$(mktemp) + jq -ce ' + .properties += + [{"name":"apiUrl","type":"string","value":"https://play.aaaaaaaaaaaadventu.re"}] + | (.layers[] | select(.properties != null and .properties[].name=="jitsiRoom") | .properties) += + [{"name":"jitsiUrl","type":"string","value":"meet.jit.si"}] + ' $f >$tmp + mv $tmp $f +done