dotfiles/scripts/10-copy-files.sh
2023-02-19 21:02:08 +01: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/ /