mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 392be73e922f49a90871291171d38ff884cf38d3
parent ee7a62794c9167fa210c8e6332f0d5c7a45f00bb
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Thu,  1 Sep 2016 10:33:18 +0200

one file per host

Diffstat:
duuid | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/duuid b/duuid @@ -3,7 +3,8 @@ # get disk uuid from volume name VOLUME="$1" -FILE="$HOME/config/private/duuid" +HOST=$(hostname | cut -d'.' -f1) +FILE="$HOME/config/private/duuid/$HOST" ID="$(grep "^$VOLUME " "$FILE" | cut -d' ' -f2)"