diff options
Diffstat (limited to 'andbackup.sh')
-rw-r--r--[-rwxr-xr-x] | andbackup.sh | 2 |
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 |