mirror of
https://github.com/bol-van/zapret.git
synced 2025-05-31 23:17:49 +05:00
install_bin: do exec test after elf test
This commit is contained in:
parent
6c9ff2010b
commit
38a3833351
@ -82,7 +82,11 @@ check_dir()
|
||||
;;
|
||||
elf)
|
||||
out=$(read_elf_arch "$exe")
|
||||
[ "$ELF_ARCH" = "$out" ]
|
||||
[ "$ELF_ARCH" = "$out" ] && {
|
||||
# exec test to verify it actually works. no illegal instruction or crash.
|
||||
out=$(echo 0.0.0.0 | "$exe" 2>/dev/null)
|
||||
[ -n "$out" ]
|
||||
}
|
||||
;;
|
||||
find)
|
||||
out=$(echo 0.0.0.0 | $FIND "$dir" -maxdepth 1 -name ip2net -exec {} \; 2>/dev/null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user