Browse Source

removed protobuf module install (already in dockerfile)

pull/1/head
Ivo Oliveira Capanema 2 years ago
parent
commit
b3592929d2
  1. 5
      reinstall-magisk-on-lineageos

5
reinstall-magisk-on-lineageos

@ -63,10 +63,6 @@ extract_boot_image_from_file_based_ota() {
exit 1 exit 1
} }
install_python_protobuf() {
sudo python3 -m pip install protobuf
}
extract_payload_from_payload_based_ota() { extract_payload_from_payload_based_ota() {
unzip -od /tmp /tmp/lineageos.zip payload.bin unzip -od /tmp /tmp/lineageos.zip payload.bin
} }
@ -76,7 +72,6 @@ generate_random_alnum_string_of_length_6() {
} }
extract_boot_image_from_payload_file() { extract_boot_image_from_payload_file() {
install_python_protobuf
# For cases in which the repo has already been cloned, I prefer to create a random directory name to clone into, instead of deleting any file or directory on the user's machine. # For cases in which the repo has already been cloned, I prefer to create a random directory name to clone into, instead of deleting any file or directory on the user's machine.
scripts_directory_name="scripts_$(generate_random_alnum_string_of_length_6)" scripts_directory_name="scripts_$(generate_random_alnum_string_of_length_6)"
git clone https://github.com/LineageOS/scripts /tmp/$scripts_directory_name git clone https://github.com/LineageOS/scripts /tmp/$scripts_directory_name

Loading…
Cancel
Save