summaryrefslogtreecommitdiff
path: root/stowdots
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-23 17:53:48 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-04-23 17:53:48 +0200
commit9f64e3193206caf82bc9b6cd1fcb014209e7e1b9 (patch)
tree7172da32ae67c16c5aa6995c596085d1d527f4ef /stowdots
parent953895bbf19a6a6d63a99c21bee14fd45bb70c7d (diff)
add support for path with spaces
Diffstat (limited to 'stowdots')
-rwxr-xr-xstowdots4
1 files 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"