dry run test

This commit is contained in:
Rodrigo 2023-03-05 17:31:03 +01:00
parent e0536cc33d
commit 6257bac14f

View file

@ -29,7 +29,7 @@ Migration_move(){
origin=$1
destination=$2
mkdir -p "$destination"
rsync --remove-source-files -avzh "$origin" "$destination" && Migration_updatePaths "$origin" "$destination" | \
rsync --dry-run -avzh "$origin" "$destination" && Migration_updatePaths "$origin" "$destination" | \
stdbuf -i0 -o0 -e0 tr '\r' '\n' | stdbuf -i0 -o0 -e0 awk -W interactive '/^ /{ print int(+$2); fflush(); next}$0{ print "# " $0}' | zenity --progress --width=400 --text="Moving...." --auto-close --title="Migrating your installation"
}