summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-01-01 22:35:41 +0100
committerErich Eckner <git@eckner.net>2022-01-01 22:35:41 +0100
commitb67e33ff8eeeca58c763112c172221a1a5fe593d (patch)
tree175321941a2c8f11c4eef53309c7a7e243838e60
parentff12d6752047becb6c3aa120f20cbb283c9b2780 (diff)
downloadtinc-graph-b67e33ff8eeeca58c763112c172221a1a5fe593d.tar.xz
fix typo and argumentsHEADmaster
-rwxr-xr-xsave-graph4
1 files changed, 3 insertions, 1 deletions
diff --git a/save-graph b/save-graph
index 005e6be..fd193d8 100755
--- a/save-graph
+++ b/save-graph
@@ -4,6 +4,8 @@ graph=$(
tinc --net=$1 dump digraph
)
+shift
+
pre=$(
printf '%s\n' "${graph}" \
| sed '
@@ -51,7 +53,7 @@ inter=$(
if printf '%s\n' "${graph}" \
| grep -qwF backup \
&& printf '%s\n' "${graph}" \
-| greo -qwF backup_lo; then
+| grep -qwF backup_lo; then
extra='
"backup" -> "backup_lo" [style=dashed, constraint=false, dir=none];'
else