Compare commits
No commits in common. "716ed4adbeacb53c7fe253336f83e1d27842c249" and "f51bf593da46ae1b73235e854d9837e71d2314ce" have entirely different histories.
716ed4adbe
...
f51bf593da
@ -6,9 +6,9 @@ RUN apt-get install -y \
|
|||||||
android-tools-fastboot \
|
android-tools-fastboot \
|
||||||
unzip \
|
unzip \
|
||||||
curl \
|
curl \
|
||||||
git
|
git \
|
||||||
RUN pip3 install protobuf \
|
python3-six
|
||||||
six
|
RUN pip3 install protobuf
|
||||||
COPY . /magisk
|
COPY . /magisk
|
||||||
WORKDIR /magisk
|
WORKDIR /magisk
|
||||||
CMD bash reinstall-magisk-on-lineageos
|
CMD bash reinstall-magisk-on-lineageos
|
||||||
|
@ -52,7 +52,8 @@ get_build_url() {
|
|||||||
check_exists_latest_lineageos_build() {
|
check_exists_latest_lineageos_build() {
|
||||||
if [[ -f "/tmp/lineageos.zip" ]]; then
|
if [[ -f "/tmp/lineageos.zip" ]]; then
|
||||||
# The --location lets curl follow the redirection.
|
# The --location lets curl follow the redirection.
|
||||||
curl --silent --location "$(get_build_url)?sha256" --output /tmp/lineageos.sha256
|
print_message "$(get_build_url)?sha256"
|
||||||
|
curl --location "$(get_build_url)?sha256" --output /tmp/lineageos.sha256
|
||||||
hash1=$( awk '{print $1}' /tmp/lineageos.sha256 )
|
hash1=$( awk '{print $1}' /tmp/lineageos.sha256 )
|
||||||
hash2=$( sha256sum /tmp/lineageos.zip | awk '{print $1}' )
|
hash2=$( sha256sum /tmp/lineageos.zip | awk '{print $1}' )
|
||||||
[[ -n $hash1 && -n $hash2 && $hash1 == $hash2 ]]
|
[[ -n $hash1 && -n $hash2 && $hash1 == $hash2 ]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user