Strip comments from ends of lines before passing to pip

This commit is contained in:
Jonathan Kamens
2012-10-11 10:57:27 -04:00
parent d98190daf7
commit 7c2bdb7b56
+1
View File
@@ -4,6 +4,7 @@ a=0
while read line
do
if [[ -n "$line" && "$line" != \#* ]] ; then
line=${line%#*}
pip install $line
fi
((a = a + 1))