dotfiles/scripts/10-copy-files.sh

8 lines
198 B
Bash
Raw Normal View History

2023-10-14 22:38:07 +02:00
#!/bin/sh
HOME_FILES=${HOME_FILES:-./files/home}
ROOT_FILES=${ROOT_FILES:-./files/root}
# overwrite files but preserve files surrounding
rsync -av $HOME_FILES/ $HOME
$SUDO rsync -av $ROOT_FILES/ /