Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax error in util_functions.sh #7267

Merged
merged 1 commit into from
Aug 29, 2023
Merged

Conversation

canyie
Copy link
Collaborator

@canyie canyie commented Aug 29, 2023

No description provided.

@osm0sis
Copy link
Collaborator

osm0sis commented Aug 29, 2023

In addition to the missing then, it's true/false so could just be elif ! $DATA; then 👍

@topjohnwu
Copy link
Owner

@osm0sis $DATA may be an empty string, so we cannot directly do that

@topjohnwu topjohnwu merged commit e9b9bf9 into topjohnwu:master Aug 29, 2023
11 checks passed
@osm0sis
Copy link
Collaborator

osm0sis commented Aug 29, 2023

@osm0sis $DATA may be an empty string, so we cannot directly do that

@topjohnwu, oh.. how would that happen? It's only set to true/false in check_data and is treated as such there, and I don't see any other references to $DATA or DATA= anywhere..

https://github.com/topjohnwu/Magisk/blob/master/scripts/util_functions.sh#L510-L520

@topjohnwu
Copy link
Owner

The check_data function is only called in recovery and will not be called in the Magisk app.

@osm0sis
Copy link
Collaborator

osm0sis commented Aug 29, 2023

Ahh, thanks, that makes more sense now. 🙂

@canyie canyie deleted the scripts branch August 30, 2023 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants