Files
catalyst/etc/ordered_pip.sh
T
Jonathan Kamens 0a0f35a14e Make ordered_pip.sh more robust
Make ordered_pip.sh exit on error. Remove useless echo of empty
string. Fix counting of the number of packages installed. Ignore blank
lines in requirements file.
2012-08-23 17:25:58 -04:00

13 lines
212 B
Bash
Executable File

#!/bin/bash -e
a=0
while read line
do
if [[ -n "$line" && "$line" != \#* ]] ; then
#echo $line
pip install $line
fi
((a = a + 1))
done < $1
echo "$0: Final package count is $a";