From: tfheen Date: Sun, 23 Nov 2003 15:47:20 +0000 (+0000) Subject: better solaris solution X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c6f52ce19df681343354f49464e3be04ef8ded1;p=dotfiles better solaris solution git-svn-id: file:///svn/tfheen/trunk/dotfiles@218 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/link-dotfiles b/link-dotfiles index 38092b8..4c0d29f 100755 --- a/link-dotfiles +++ b/link-dotfiles @@ -1,10 +1,11 @@ #! /bin/sh -# SunOS /bin/sh is broken wrt local. *sigh* -if test "`uname -s`" = "SunOS" -a "$RUNNING_UNDER_BASH" = ""; then - RUNNING_UNDER_BASH=1 - export RUNNING_UNDER_BASH - exec bash $0 "$@" +# Do the solaris dance to get a real shell. +if [ ! -d ~root ] ; then + if exec /usr/xpg4/bin/sh $0 "$@" ; then + echo "No POSIX shell available, call "; + exit + fi fi KNOWNMD5SUMS="b5239e7dfbecaf832e18a5377b794b09 40b31b69676f239da8a2c7f0b375b879 ef6c1cd4a3d89a2c0f6b16d209d27ab7 57a81d1c93493a29c4c3eba3490c8d2a d8e9ecd0b80102c82966a045544bbf68 e9d2739d6f3d7672222c07d901d46e21 d96c12497684c56ea77d9d1f589b0634 cc44c6693e6313d26d665aac57f7b7f7 f2a26bacd5cd1a2a5c294dbb2da8d58b"