VPNkeyXchange-vxlan-test/get_hoodid.sh

7 lines
115 B
Bash
Executable File

#!/bin/sh
hoodfile=$(grep -l "id\": \"$1\"" hood/* )
[ -z $hoodfile ] && echo "no hood $1" && exit
cat $hoodfile