diff --git a/.cfg/install.sh b/.cfg/install.sh index 940878c..1f0e251 100755 --- a/.cfg/install.sh +++ b/.cfg/install.sh @@ -8,6 +8,7 @@ mkdir -p "$HOME/.config-backup" git clone --no-checkout --bare https://github.com/dhvcc/configs.git $HOME/.cfg # Backup and remove repo files (if exist) +cfg ls-tree -r master --name-only | xargs -I {} bash -c '$(dirname "$HOME"/.config-backup/{})' cfg ls-tree -r master --name-only | xargs -I {} mv {} ./.config-backup/{} cfg checkout