From 5baa3f4647c1b556ecc3cceeae38b6e8258d2910 Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Sun, 28 Apr 2024 21:21:23 +0200 Subject: [PATCH] escape vars in sync script --- sync.zsh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sync.zsh b/sync.zsh index 6c4acab..1e5b1b5 100755 --- a/sync.zsh +++ b/sync.zsh @@ -11,15 +11,15 @@ sync() { mkdir -p "${DOTFILES_DIR}/.scripts" # configs - cp -v $HOME/.zshrc $DOTFILES_DIR/.zshrc - cp -v $HOME/.config/gtk-3.0/gtk.css $DOTFILES_DIR/.config/gtk-3.0/gtk.css - cp -v $HOME/.config/helix/config.toml $DOTFILES_DIR/.config/helix/config.toml - cp -v $HOME/.config/kitty/kitty.conf $DOTFILES_DIR/.config/kitty/kitty.conf - cp -vr $HOME/.config/zellij/ $DOTFILES_DIR/.config/ + cp -v "${HOME}/.zshrc" "${DOTFILES_DIR}/.zshrc" + cp -v "${HOME}/.config/gtk-3.0/gtk.css" "${DOTFILES_DIR}/.config/gtk-3.0/gtk.css" + cp -v "${HOME}/.config/helix/config.toml" "${DOTFILES_DIR}/.config/helix/config.toml" + cp -v "${HOME}/.config/kitty/kitty.conf" "${DOTFILES_DIR}/.config/kitty/kitty.conf" + cp -vr "${HOME}/.config/zellij" "${DOTFILES_DIR}/.config/" # scripts - cp -v $SCRIPTS/calendar.sh $DOTFILES_DIR/.scripts/calendar.sh - cp -v $SCRIPTS/zellij-launcher.zsh $DOTFILES_DIR/.scripts/zellij-launcher.zsh + cp -v "${HOME}/.scripts/calendar.sh" "${DOTFILES_DIR}/.scripts/calendar.sh" + cp -v "${HOME}/.scripts/zellij-launcher.zsh" "${DOTFILES_DIR}/.scripts/zellij-launcher.zsh" echo "done." } -- libgit2 1.7.2