gobolinux / Scripts

The GoboLinux scripts collection
41 stars 9 forks source link

Fix blank lines stopping file read #46

Closed sage-etcher closed 6 months ago

sage-etcher commented 6 months ago

If a blank line was encountered in the Dependency file, the file would stop being read on the spot and the the previous line's dependency wouldn't be included. This adds a check for whitespace before assuming the file is an ELF

Example dependency file:

Dep1
Dep2
Dep3

Dep4

was only including Dep1 and Dep2 before assuming the file was ELF and stopping the read.