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.
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:
The proposed solution has been tested and fixes the issue.