diff etc/check_cygwin_setup.sh @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents 341dac730539
children 6240c7796c7a
line wrap: on
line diff
--- a/etc/check_cygwin_setup.sh	Mon Aug 13 11:01:58 2007 +0200
+++ b/etc/check_cygwin_setup.sh	Mon Aug 13 11:03:08 2007 +0200
@@ -23,17 +23,17 @@
 OSversion="`uname -v | sed 's/^\(.\).*$/\1/'`"
 
 shell=`type sh | sed 's/sh is //'`
-distdir=`dirname $shell | sed 's!^//\(.\)/\(.*\)!\1:/\2!'`
+distdir=`dirname $shell`
 
 echo "cygwin installed in $distdir"
 
 echo "checking paths ..."
 
 if [ ! -d "/bin" ]; then
-    echo "You don't have a /bin directory.  Would you like to mount cygwin as /bin ?"
+    echo "You don't have /bin would like to mount cygwin as /bin ?"
     if yorn; then
 	mkdir /bin
-	mount -b $distdir /bin
+	mount -b /bin $distdir
     fi
 elif [ "$distdir" != "/bin" ]; then
     echo "Warning: you have /bin but it's not the cygwin installation."