This commit is contained in:
YAWAsau
2021-10-23 13:59:40 +08:00
parent def4efc213
commit ad8b464296
2 changed files with 16 additions and 15 deletions

View File

@@ -147,7 +147,7 @@ Backup_data() {
user) Size="$userSize" && data_path="$path2/$name" ;;
data) Size="$dataSize" && data_path="$path/$1/$name" ;;
obb) Size="$obbSize" && data_path="$path/$1/$name" ;;
*) [[ -f $app_details ]] && Size="$(cat "$app_details" | awk "/$1Size/"'{print $1}' | cut -f2 -d '=' | tail -n1 | sed 's/\"//g')" ; data_path="$2" && Compression_method=tar && zsize=1
*) [[ -f $app_details ]] && Size="$(cat "$app_details" | awk "/$1Size/"'{print $1}' | cut -f2 -d '=' | tail -n1 | sed 's/\"//g')" ; data_path="$2" ; Compression_method=tar ; zsize=1
esac
if [[ -d $data_path ]]; then
if [[ $Size != $(du -ks "$data_path" | awk '{print $1}') ]]; then