From 32587180faeeed43badc0b4b6ddb19688b6cc695 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 3 Jun 2018 18:21:06 +0200 Subject: [PATCH] lib.sh: remove unnecessary escaping "~" shouldn't require escaping. --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"` -- 2.45.2