From 36670f3e1cccad579b994a29320eeb8e287803b7 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 21 May 2015 01:56:08 +0200 Subject: sh: functions -> bin/ --- bin/list-hosts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/list-hosts (limited to 'bin/list-hosts') diff --git a/bin/list-hosts b/bin/list-hosts new file mode 100755 index 000000000..e25a8ac4f --- /dev/null +++ b/bin/list-hosts @@ -0,0 +1,7 @@ +#! /bin/sh +# list-hosts : lines tinc-host-file +set -euf + +# Precondition: $PWD/hosts is the correct repository :) +git -C hosts ls-tree --name-only HEAD \ + | awk '{print ENVIRON["PWD"]"/hosts/"$$0}' -- cgit v1.2.3