From 9f64e3193206caf82bc9b6cd1fcb014209e7e1b9 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 23 Apr 2023 17:53:48 +0200 Subject: add support for path with spaces --- stowdots | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stowdots b/stowdots index ad61a27..bd8abaa 100755 --- a/stowdots +++ b/stowdots @@ -18,8 +18,8 @@ else read MACH fi -ln -sf "$(realpath $0)" $HOME/bin/ -cd "$(realpath $0 | xargs dirname)" || exit 1 +ln -sf "$(realpath "$0")" $HOME/bin/ +cd "$(dirname "$(realpath "$0")")" || exit 1 case "$MACH" in "desktop" | "d" | "laptop" | "l") mkdir -p "$HOME/bin" -- cgit v1.2.3