demo.sh: make relative path configureable
This commit is contained in:
parent
8f98f0e8b7
commit
7cfce69504
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user