demo.sh: make relative path configureable
This commit is contained in:
parent
8f98f0e8b7
commit
7cfce69504
@ -1,21 +1,29 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eux -o pipefail
|
||||||
|
|
||||||
rm -r ~/.config/clan
|
rm -r ~/.config/clan
|
||||||
|
|
||||||
clan history add "clan://~/Projects/democlan#syncthing-peer1"
|
if [ -z "$1" ]; then
|
||||||
clan history add "clan://~/Projects/democlan#syncthing-peer2"
|
echo "Usage: $0 <democlan>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
clan history add "clan://~/Projects/democlan#moonlight-peer1"
|
democlan="$1"
|
||||||
clan history add "clan://~/Projects/democlan#moonlight-peer2"
|
|
||||||
|
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
|
clear
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Open up this link in a browser:
|
Open up this link in a browser:
|
||||||
"clan://~/Projects/democlan#syncthing-introducer"
|
"clan://$democlan#syncthing-introducer"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Execute this command to show waypipe windows:
|
Execute this command to show waypipe windows:
|
||||||
$ clan --flake ~/Projects/democlan/ vms run --wayland wayland
|
$ clan --flake $democlan vms run --wayland wayland
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user