Skip to content

Commit

Permalink
fix backup script2
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvcc committed Jul 2, 2024
1 parent 4db01d4 commit dbc71eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .cfg/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ 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 ls-tree -r master --name-only | xargs -I {} bash -c 'mkdir -p $(dirname "$HOME"/.config-backup/{})'
cfg ls-tree -r master --name-only | xargs -I {} mv {} "$HOME"/.config-backup/{}

cfg checkout

Expand Down

0 comments on commit dbc71eb

Please sign in to comment.