Browse Source

Fix edge case in build-package.sh

android-5
Fredrik Fornwall 8 years ago
parent
commit
d731000488
  1. 2
      build-package.sh

2
build-package.sh

@ -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

Loading…
Cancel
Save