doomedraven / Tools

Combination of different utilities, have fun!
MIT License
198 stars 96 forks source link

Update cape2.sh (install_yara function: error parsing version) #108

Closed jfzazo closed 2 years ago

jfzazo commented 2 years ago

The variable yara_version_only was not being initialized appropriately. An echo was missing, resulting the initialization of such variable into something like: "v4.1.3|cut -c 2-".

Due to this fact, the creation of the .deb file fails, returning the installation of the yara package an error:

dpkg-deb: error: parsing file '/tmp/yara_builded/DEBIAN/control' near line 2 package 'yara':
 'Version' field value 'v4.1.3|cut -c 2-': version string has embedded spaces
dpkg: error: cannot access archive '/tmp/yara_builded.deb': No such file or directory

The proposed solution has been tested and fixes the issue.

doomedraven commented 2 years ago

Interesante, gracias!