From a091fe530e35e6513b80905c6dca1ebc044da9ca Mon Sep 17 00:00:00 2001 From: Chris Kowalik Date: Thu, 8 Aug 2013 13:16:39 -0300 Subject: [PATCH] deleting comments and empty lines in single command --- bin/johnny_deps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/johnny_deps b/bin/johnny_deps index 2f4fe4f..0f1168b 100755 --- a/bin/johnny_deps +++ b/bin/johnny_deps @@ -11,7 +11,7 @@ set -eu root=$PWD godeps=${1-"Godeps"} -deps=$(sed -e 's/#.*//' < "$godeps" | grep -P ".+") +deps=$(sed 's/#.*//;/^\s*$/d' < "$godeps") while read package version; do go get -v -u -d "$package"