Skip to content

Commit ec60218

Browse files
author
bol-van
committed
install_bin: remove macos support
1 parent 711eefe commit ec60218

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

install_bin.sh

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ select_test_method()
3030
TEST=bash
3131
elif exists zsh && [ "$UNAME" != CYGWIN ] ; then
3232
TEST=zsh
33-
elif [ "$UNAME" != Darwin -a "$UNAME" != CYGWIN ]; then
33+
elif [ "$UNAME" != CYGWIN ]; then
3434
if exists hexdump and exists dd; then
3535
# macos does not use ELF
3636
TEST=elf
@@ -64,20 +64,13 @@ select_test_method()
6464

6565
}
6666

67-
disable_antivirus()
68-
{
69-
# $1 - dir
70-
[ "$UNAME" = Darwin ] && find "$1" -maxdepth 1 -type f -perm +111 -exec xattr -d com.apple.quarantine {} \; 2>/dev/null
71-
}
72-
7367
check_dir()
7468
{
7569
local dir="$BINDIR/$1"
7670
local exe="$dir/ip2net"
7771
local out
7872
if [ -f "$exe" ]; then
7973
if [ -x "$exe" ]; then
80-
disable_antivirus "$dir"
8174
case $TEST in
8275
bash)
8376
out=$(echo 0.0.0.0 | bash -c "\"$exe"\" 2>/dev/null)
@@ -143,8 +136,7 @@ if [ ! -d "$BINDIR" ] || ! dir_is_not_empty "$BINDIR" ]; then
143136
echo "to compile on other systems : make"
144137
;;
145138
Darwin)
146-
echo "you need to download release from github or build binaries from source"
147-
echo "to compile : make mac"
139+
echo "macos is not supported"
148140
;;
149141
FreeBSD)
150142
echo "you need to download release from github or build binaries from source"
@@ -168,9 +160,6 @@ case $UNAME in
168160
ARCHLIST="my linux-x86_64 linux-x86 linux-arm64 linux-arm linux-mips64 linux-mipsel linux-mips linux-lexra linux-ppc"
169161
PKTWS=nfqws2
170162
;;
171-
Darwin)
172-
ARCHLIST="my mac64"
173-
;;
174163
FreeBSD)
175164
ARCHLIST="my freebsd-x86_64"
176165
PKTWS=dvtws2

0 commit comments

Comments
 (0)