]> err.no Git - dotfiles/commitdiff
add evil, evil, evil hack for sunos
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sat, 9 Nov 2002 10:04:30 +0000 (10:04 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sat, 9 Nov 2002 10:04:30 +0000 (10:04 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@101 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

link-dotfiles

index 1d559d70e53901b1c3353e6505a94e45cee52714..55d45bd6d2e900eb4ce7cd1124b5ab1dc1e438b4 100755 (executable)
@@ -1,9 +1,10 @@
 #! /bin/sh
 
 # SunOS /bin/sh is broken wrt local. *sigh*
-if test "`uname -s`" = "SunOS"; then
-    echo "SunOS is broken"
-    exit 0
+if test "`uname -s`" = "SunOS" -a "$RUNNING_UNDER_BASH" = ""; then
+    RUNNING_UNDER_BASH=1
+    export RUNNING_UNDER_BASH
+    exec bash $0 "$@"
 fi
 
 KNOWNMD5SUMS="b5239e7dfbecaf832e18a5377b794b09 40b31b69676f239da8a2c7f0b375b879 ef6c1cd4a3d89a2c0f6b16d209d27ab7 57a81d1c93493a29c4c3eba3490c8d2a d8e9ecd0b80102c82966a045544bbf68 e9d2739d6f3d7672222c07d901d46e21 d96c12497684c56ea77d9d1f589b0634 cc44c6693e6313d26d665aac57f7b7f7"