From 06f57e27ed4d1fe837ed42380ad484ee8b2729a1 Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 28 May 2025 20:40:26 +0300 Subject: [PATCH] install_bin: fix minor problems --- install_bin.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install_bin.sh b/install_bin.sh index 9d7191b5..da1406c9 100755 --- a/install_bin.sh +++ b/install_bin.sh @@ -28,9 +28,9 @@ select_test_method() # bash and zsh do not do this if exists bash; then TEST=bash - elif exists zsh; then + elif exists zsh && [ "$UNAME" != CYGWIN ] ; then TEST=zsh - elif [ "$UNAME" != Darwin ]; then + elif [ "$UNAME" != Darwin -a "$UNAME" != CYGWIN ]; then if exists hexdump and exists dd; then # macos does not use ELF TEST=elf @@ -110,7 +110,6 @@ ccp() } UNAME=$(uname) -select_test_method unset PKTWS case $UNAME in @@ -134,6 +133,8 @@ case $UNAME in ARCHLIST="my" esac +select_test_method + if [ "$1" = "getarch" ]; then for arch in $ARCHLIST do