]> git.sev.monster Git - dotfiles.git/commitdiff
fix for shells without OSTYPE
authords6 <git@ds6.pw>
Fri, 13 Apr 2018 03:11:06 +0000 (22:11 -0500)
committersev <git@sev.monster>
Fri, 5 Apr 2024 21:27:39 +0000 (16:27 -0500)
install.sh

index 6e772915f673de59ec93d7c1ae3d223d555cf0b5..3eeca8b9f1c4a7586ba345c7f144655720d0f2ba 100755 (executable)
@@ -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() {
This page took 0.03364 seconds and 4 git commands to generate.