demo.sh: make relative path configureable

This commit is contained in:
Jörg Thalheim
2024-02-13 11:23:29 +01:00
parent 7c41a0e0f8
commit e8bb051c35

View File

@@ -1,21 +1,29 @@
#!/usr/bin/env bash
set -eux -o pipefail
rm -r ~/.config/clan
clan history add "clan://~/Projects/democlan#syncthing-peer1"
clan history add "clan://~/Projects/democlan#syncthing-peer2"
if [ -z "$1" ]; then
echo "Usage: $0 <democlan>"
exit 1
fi
clan history add "clan://~/Projects/democlan#moonlight-peer1"
clan history add "clan://~/Projects/democlan#moonlight-peer2"
democlan="$1"
clan history add "clan://$democlan#syncthing-peer1"
clan history add "clan://$democlan#syncthing-peer2"
clan history add "clan://$democlan#moonlight-peer1"
clan history add "clan://$democlan#moonlight-peer2"
clear
cat << EOF
Open up this link in a browser:
"clan://~/Projects/democlan#syncthing-introducer"
"clan://$democlan#syncthing-introducer"
EOF
cat << EOF
Execute this command to show waypipe windows:
$ clan --flake ~/Projects/democlan/ vms run --wayland wayland
$ clan --flake $democlan vms run --wayland wayland
EOF