tmux/tests/scripts/correct-elf.sh
Josh Boyer 7683fb357e Import gating tests
Relates: rhbz 2024339
2023-04-04 14:57:56 -04:00

20 lines
348 B
Bash
Executable File

#!/bin/sh
PATH=/usr/bin
TMUX=/usr/bin/tmux
echo -n "checking to see that ${TMUX} is an ELF executable..."
case "$(file -b --mime-type "${TMUX}")" in
application/x-executable|application/x-pie-executable|application/x-sharedlib)
echo "ok"
RET=0
;;
*)
echo "FAIL"
RET=1
;;
esac
exit ${RET}