|
@ -279,7 +279,9 @@ termux_step_handle_buildarch() { |
|
|
if test -e "$TERMUX_DATA_PREVIOUS_BACKUPDIR"; then |
|
|
if test -e "$TERMUX_DATA_PREVIOUS_BACKUPDIR"; then |
|
|
termux_error_exit "Directory already exists" |
|
|
termux_error_exit "Directory already exists" |
|
|
fi |
|
|
fi |
|
|
|
|
|
if [ -d /data/data ]; then |
|
|
mv /data/data "$TERMUX_DATA_PREVIOUS_BACKUPDIR" |
|
|
mv /data/data "$TERMUX_DATA_PREVIOUS_BACKUPDIR" |
|
|
|
|
|
fi |
|
|
# Restore new one (if any) |
|
|
# Restore new one (if any) |
|
|
if [ -d "$TERMUX_DATA_CURRENT_BACKUPDIR" ]; then |
|
|
if [ -d "$TERMUX_DATA_CURRENT_BACKUPDIR" ]; then |
|
|
mv "$TERMUX_DATA_CURRENT_BACKUPDIR" /data/data |
|
|
mv "$TERMUX_DATA_CURRENT_BACKUPDIR" /data/data |
|
|