From: Simon Ruderich Date: Fri, 1 May 2009 19:51:32 +0000 (+0200) Subject: lib.sh: Fix for less capable echo versions. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=d2efdbf3d4f583655ecbe5dba5163f32b1307582;p=config%2Fdotfiles.git lib.sh: Fix for less capable echo versions. This occurs with bash on Mac OS X 10.5 for example. --- diff --git a/lib.sh b/lib.sh index e9fd56d..799560c 100644 --- 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.