mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-27 19:14:36 +08:00
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.
This commit is contained in:
+5
-4
@@ -1,11 +1,12 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -e
|
||||
|
||||
echo $hash
|
||||
a=0
|
||||
while read line
|
||||
do
|
||||
if [[ $line != \#* ]] ; then
|
||||
if [[ -n "$line" && "$line" != \#* ]] ; then
|
||||
#echo $line
|
||||
pip install $line
|
||||
fi
|
||||
((a = a + 1))
|
||||
done < $1
|
||||
echo "Final line count is: $a";
|
||||
echo "$0: Final package count is $a";
|
||||
|
||||
Reference in New Issue
Block a user