From b83a46139cecbf9cdf8c6c8469f1b1e79556d4a2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 8 May 2010 22:58:38 -0300 Subject: Using cut instead of awk for gpg export --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index a454dff..99f46aa 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -103,7 +103,7 @@ class reprepro { user => reprepro, subscribe => File["$basedir/conf/distributions"], path => "/usr/bin:/bin"; - "gpg --export -a `gpg --with-colon --list-secret-keys | awk -F ':' '{ print \$5 }' | head -1` > $basedir/key.asc": + "gpg --export -a `gpg --with-colon --list-secret-keys | cut -d : -f 5 | head -1` > $basedir/key.asc": creates => "$basedir/key.asc", user => reprepro, subscribe => File["$basedir/.gnupg"], -- cgit v1.2.3