summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2020-02-08 20:16:30 -0400
committerosm0sis <osm0sis@outlook.com>2020-02-08 20:16:30 -0400
commit5bec49dc98e3b227c27d6107588ecde3247f9d12 (patch)
treef441ffb589c96f59f65f62ebbb9f0a00e11e9d53
parentdfcfb87e6e88562476c1a5b304385838ff802709 (diff)
Backend: simplify heredoc usage
-rwxr-xr-xMETA-INF/com/google/android/update-binary8
1 files 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 <<EOF > $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
}