]> gitweb.fluxo.info Git - puppet-reprepro.git/commitdiff
Using cut instead of awk for gpg export
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 9 May 2010 01:58:38 +0000 (22:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 9 May 2010 01:58:38 +0000 (22:58 -0300)
manifests/init.pp

index a454dffbc4fadf8e192e1e24c5adb5ccd28a9f5d..99f46aa4e468f8fe55e34255f72846c41d3f48c0 100644 (file)
@@ -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"],