From: Simon Ruderich Date: Sun, 3 Jun 2018 16:21:06 +0000 (+0200) Subject: lib.sh: remove unnecessary escaping X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=32587180faeeed43badc0b4b6ddb19688b6cc695 lib.sh: remove unnecessary escaping "~" shouldn't require escaping. --- diff --git a/lib.sh b/lib.sh index 12c9b08..0534153 100644 --- a/lib.sh +++ b/lib.sh @@ -140,7 +140,7 @@ link() { # Get all necessary paths. pwd=`pwd` - base=`printf '%s' "$2" | sed "s|\~|$HOME|"` # expand ~, some sh don't do it + base=`printf '%s' "$2" | sed "s|~|$HOME|"` # expand ~, some sh don't do it base=`dirname "$base"` source=`printf '%s' "$pwd/$1" | sed "s|$base/||"` target=`basename "$2"`