You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
411 B
18 lines
411 B
12 months ago
|
#!/bin/bash
|
||
|
# Author: ???
|
||
|
# Christoph Galuschka <christoph.galuschka@chello.at>
|
||
|
|
||
|
t_Log "Running $0 - checking if file can recognize mime executable type "
|
||
|
|
||
|
if [ "$centos_ver" -eq "8" ] ;then
|
||
|
string="application/x-sharedlib"
|
||
|
elif [ "$centos_ver" -eq "9" ] ;then
|
||
|
string="application/x-pie-executable"
|
||
|
else
|
||
|
string="application/x-executable"
|
||
|
fi
|
||
|
|
||
|
file /bin/bash -i | grep -q "${string}"
|
||
|
|
||
|
t_CheckExitStatus $?
|