From 5bec49dc98e3b227c27d6107588ecde3247f9d12 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Sat, 8 Feb 2020 20:16:30 -0400 Subject: [PATCH] Backend: simplify heredoc usage --- META-INF/com/google/android/update-binary | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index cf194dd..6946fef 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -292,11 +292,11 @@ description=$KERNEL_STRING EOF } dump_moduleremover() { -cat < $1; +cat <<'EOF' > $1; #!/system/bin/sh -MODDIR=\${0%/*}; -if [ "\$(cat /proc/version)" != "\$(cat \$MODDIR/version)" ]; then - rm -rf \$MODDIR; +MODDIR=${0%/*}; +if [ "$(cat /proc/version)" != "$(cat $MODDIR/version)" ]; then + rm -rf $MODDIR; fi; EOF }