dotfiles/scripts/10-copy-files.sh
2023-10-14 22:38:07 +02:00

8 lines
No EOL
198 B
Bash

#!/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/ /