Backend: simplify heredoc usage

This commit is contained in:
osm0sis committed 2020-02-08 20:16:30 -04:00
1 parent dfcfb87e6e
commit 5bec49dc98
1 file changed
+4 -4
+4 -4
View File
@@ -292,11 +292,11 @@ description=$KERNEL_STRING
EOF EOF
} }
dump_moduleremover() { dump_moduleremover() {
cat <<EOF > $1; cat <<'EOF' > $1;
#!/system/bin/sh #!/system/bin/sh
MODDIR=\${0%/*}; MODDIR=${0%/*};
if [ "\$(cat /proc/version)" != "\$(cat \$MODDIR/version)" ]; then if [ "$(cat /proc/version)" != "$(cat $MODDIR/version)" ]; then
rm -rf \$MODDIR; rm -rf $MODDIR;
fi; fi;
EOF EOF
} }