From 4986f6da9ecf53a6a0d9d78e4f4417bec25c7192 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 15 Jul 2021 02:23:11 +0200 Subject: [PATCH] Fix bug in dotfish --- functions/dotfish.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/dotfish.fish b/functions/dotfish.fish index f2b6b92..d744b18 100644 --- a/functions/dotfish.fish +++ b/functions/dotfish.fish @@ -4,15 +4,16 @@ function dotfish else set -g TARGET (whoami) end + set -g FISHCONFIG ~(echo $TARGET)/.config/fish echo_progress "Updating fish config for: " echo_highlight "$TARGET" \n echo_progress "Pulling from Git..." \n - git -C ~(echo $TARGET)/.config/fish pull + git -C $FISHCONFIG pull echo_progress "Fixing permissions..." \n - chown -R "$TARGET:" ~(echo $TARGET) + chown -R "$TARGET:" $FISHCONFIG echo_progress "Update complete!" end \ No newline at end of file