Compare commits

..

2 Commits

  1. 6
      Dockerfile
  2. 3
      reinstall-magisk-on-lineageos

6
Dockerfile

@ -6,9 +6,9 @@ RUN apt-get install -y \
android-tools-fastboot \
unzip \
curl \
git \
python3-six
RUN pip3 install protobuf
git
RUN pip3 install protobuf \
six
COPY . /magisk
WORKDIR /magisk
CMD bash reinstall-magisk-on-lineageos

3
reinstall-magisk-on-lineageos

@ -52,8 +52,7 @@ get_build_url() {
check_exists_latest_lineageos_build() {
if [[ -f "/tmp/lineageos.zip" ]]; then
# The --location lets curl follow the redirection.
print_message "$(get_build_url)?sha256"
curl --location "$(get_build_url)?sha256" --output /tmp/lineageos.sha256
curl --silent --location "$(get_build_url)?sha256" --output /tmp/lineageos.sha256
hash1=$( awk '{print $1}' /tmp/lineageos.sha256 )
hash2=$( sha256sum /tmp/lineageos.zip | awk '{print $1}' )
[[ -n $hash1 && -n $hash2 && $hash1 == $hash2 ]]

Loading…
Cancel
Save