mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 06:44:50 +08:00
0a0f35a14e
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.
13 lines
212 B
Bash
Executable File
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";
|