From: Silvio Rhatto Date: Sun, 9 May 2010 01:58:38 +0000 (-0300) Subject: Using cut instead of awk for gpg export X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b83a46139cecbf9cdf8c6c8469f1b1e79556d4a2;p=puppet-reprepro.git Using cut instead of awk for gpg export --- 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"],