]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
lib.sh: Fix for less capable echo versions.
authorSimon Ruderich <simon@ruderich.org>
Fri, 1 May 2009 19:51:32 +0000 (21:51 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 1 May 2009 19:51:32 +0000 (21:51 +0200)
This occurs with bash on Mac OS X 10.5 for example.

lib.sh

diff --git a/lib.sh b/lib.sh
index e9fd56dbed9facaa46da77390a738d922989db4a..799560cbf72f68e4f126ea8b1b285893f3586643 100644 (file)
--- a/lib.sh
+++ b/lib.sh
@@ -39,7 +39,7 @@ link() {
     # Get all necessary paths.
     pwd=`pwd`
     base=`dirname "$2"`
-    source=`echo -n "$pwd/$1" | sed "s|$base/||"`
+    source=`echo "$pwd/$1" | sed "s|$base/||"`
     target=`basename "$2"`
 
     # Go to the directory where the link is going to be created.