use rsync instead of find/mv to move files

This commit is contained in:
Daniel Sommer 2022-09-21 14:26:57 +02:00
parent 2954b4c799
commit db7e7703d0

View file

@ -13,7 +13,7 @@ printf "> changing repositories...\n"
termux-change-repo
printf "> installing additional packages...\n"
pkg install wget curl tsu htop neovim git zsh openssh
pkg install wget curl tsu htop neovim git zsh openssh rsync
printf "> cleaning package cache...\n"
pkg autoclean
@ -29,7 +29,7 @@ git config --global credential.helper store
printf "> cloning git repository...\n"
git clone "https://git.velvettear.de/velvettear/termux.git" "$HOME/tmp"
find "$HOME/tmp" -not -wholename "$HOME/tmp" -exec mv -f '{}' "$HOME" \;
rsync -av "$HOME/tmp/" "$HOME"
rm -rf "$HOME/tmp"
printf "> initializing submodule(s)...\n"