summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-10-07 17:04:38 -0600
committerAaron Ball <nullspoon@iohq.net>2016-10-07 17:04:38 -0600
commit6b77d11ab74ecc5d30324b8f64444c3bee479eda (patch)
treeccee753605fe6433dbd63ed61dbcee2c473be647
parent3b7614f65e01a4f74779f866732dee3e3699dd07 (diff)
parent317660511a10f92956e78ea3791cdd9dc14de7a4 (diff)
downloadandbackup-6b77d11ab74ecc5d30324b8f64444c3bee479eda.tar.gz
andbackup-6b77d11ab74ecc5d30324b8f64444c3bee479eda.tar.xz
Merge branch 'nougat-restore-fix'
-rw-r--r--[-rwxr-xr-x]andbackup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/andbackup.sh b/andbackup.sh
index d68fc23..a93ae52 100755..100644
--- a/andbackup.sh
+++ b/andbackup.sh
@@ -101,7 +101,7 @@ function restore_app {
# Install app if it is not yet installed
if [[ ! -f "${backups}/${app}/base.apk" ]]; then
echo "Installer for ${app} not found. Only restoring data."
- elif [[ $(dumpsys package ${app} | wc -l) -eq 0 ]]; then
+ elif [[ $(dumpsys package ${app} | grep -c userId) -eq 0 ]]; then
echo "Installer detected but package ${app} is not installed. Installing"
pm install ${backups}/${app}/base.apk
fi

Generated by cgit