We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 563df6d commit 31437eaCopy full SHA for 31437ea
src/scripts/utils.sh
@@ -2012,7 +2012,9 @@ function installRequiredPythonPackages () {
2012
currentOption=''
2013
2014
IFS=$'\n' # set the Internal Field Separator as end of line
2015
- cat "${requirementsPath}" | while read -r line
+
2016
+ # "|| [ -n "$line" ]" is for last line: https://stackoverflow.com/a/12919766
2017
+ cat "${requirementsPath}" | while read -r line || [ -n "$line" ]
2018
do
2019
2020
line="$(echo $line | tr -d '\r\n')" # trim newlines / CRs
0 commit comments