From df729e01edd285bf6cf4e0eb2234387c370ea5bf Mon Sep 17 00:00:00 2001 From: Jonathan Kamens Date: Thu, 11 Oct 2012 10:57:27 -0400 Subject: [PATCH] Strip comments from ends of lines before passing to pip --- etc/ordered_pip.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/ordered_pip.sh b/etc/ordered_pip.sh index fc1a210b..7cd74dc0 100755 --- a/etc/ordered_pip.sh +++ b/etc/ordered_pip.sh @@ -4,6 +4,7 @@ a=0 while read line do if [[ -n "$line" && "$line" != \#* ]] ; then + line=${line%#*} pip install $line fi ((a = a + 1))