X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=lib.sh;h=799560cbf72f68e4f126ea8b1b285893f3586643;hb=d2efdbf3d4f583655ecbe5dba5163f32b1307582;hp=189b07e1730ec0625d68714a901dfdb8d5e9810c;hpb=1db5f3531c266ec6bc598a82a65682d309e0cdd0;p=config%2Fdotfiles.git diff --git a/lib.sh b/lib.sh index 189b07e..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. @@ -92,8 +92,9 @@ warning() { unset option } -# Generate a file using several methods. A warning is automatically added to -# the created file and a message printed to stdout through warning(). +# Generate a file using several methods. A warning not to edit it is +# automatically added to the created file and a message printed to stdout +# through warning(). # # The following commands are possible; the file extension for the source file # in brackets.