Blame tests/p_file/01_file_mime_application.sh

Ranjib Dey e0701f
#!/bin/bash
Christoph Galuschka 238ebc
# Author:	???
Christoph Galuschka 238ebc
#		Christoph Galuschka <christoph.galuschka@chello.at>
Ranjib Dey e0701f
trishnaguha a17e62
t_Log "Running $0 - checking if file can recognize mime executable type "
Ranjib Dey e0701f
8bcb19
if [ "$centos_ver" -eq "8" ] ;then
8bcb19
  string="application/x-sharedlib"
f49232
elif [ "$centos_ver" -eq "9" ] ;then
f49232
  string="application/x-pie-executable"
8bcb19
else
8bcb19
  string="application/x-executable"
8bcb19
fi
8bcb19
8bcb19
file /bin/bash -i | grep -q "${string}"
Ranjib Dey e0701f
Ranjib Dey e0701f
t_CheckExitStatus $?