I do know it works without the "-d" since I repaired with the .25 script and was able to accept the .31 OTA after.
so heres what i think happened. i looked at all the zips and saw that yes you are correct on it not having -d
the problem wherein i needed to change it was because i had to use msm tool. magisk didnt exist period as an app.
i ran scripts without the -d and they did work
in the sense the script executed magisk install
but i had flashed my original .25 boot image and no magisk SO when i used original script it had an error and did not install magisk at all.
i was confused for a couple reasons
1. somebody mentioned replacing boot image from x with script folder y
2. previous scrips did not have
echo.
(script following the echo + period)
so when i opened MY slightly modified versions and saw -d......thats what i thought was happening. and it did work for that command.
that said, no way about it is working correctly without msm. wasnt able to update to 27 since ive been busy with fam to mess with any of this and i cant find the kernel everyone keeps talking about needing for the 31 update.