From 74024535882f827ce22050175a7b337e036150b1 Mon Sep 17 00:00:00 2001 From: ds6 Date: Thu, 12 Apr 2018 22:11:06 -0500 Subject: [PATCH 1/1] fix for shells without OSTYPE --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 6e77291..3eeca8b 100755 --- a/install.sh +++ b/install.sh @@ -17,16 +17,16 @@ cd - # accomodate multiple userlands fex='-perm -ugo=x' +lnargs=-sfnv +if [ -z "$OSTYPE" ]; then + OSTYPE=`uname -o | tr '[:upper:]' '[:lower:]'` +fi case "$OSTYPE" in # TODO: make links safer for systems without -Fw freebsd*) lnargs=-sFhvw;; netbsd*|openbsd*) lnargs=-sfhv;; - *) lnargs=-sfnv - # android busybox find doesn't have -executable - # and its sh doesn't set OSTYPE :DD - if [ -z "$ANDROID_ROOT" ]; then - fex=-executable - fi;; + # android busybox find doesn't have -executable + android) fex=-executable;; esac l() { -- 2.47.0