You do not need such a script or SD card to install an OS to your SSD, at the same time so sorry that we do not have instruction in Wiki yet.
What you have to do is:
1. Connect your SSD to the SATA port and connect its power cable.
2. Connect a micro USB 2.0 cable to the port under USB 3.0 host port at ODROID-M1 to your PC.
3. Power up your ODROID-M1 while your USB keyboard and display are connected, so you will have Petitboot on your display.
4. Select "Exit to shell" on the screen (Petitboot)
5. Run
ums /dev/sda, probably it must be
/dev/sda if you have connected only one SSD. Then this will appear as USB storage on your PC.
6. On your PC, run balenaEtcher and select the OS image you have downloaded (Ubuntu or Android).
7. Select the USB storage for your SSD on ODROID-M1 and flash the image to it.
8. Once the flashing is done, remove it from the PC and restart your ODROID-M1.
9. Done.
Here is the link to what works for ODROID-N2/N2Plus, the instruction is almost the same.
https://wiki.odroid.com/getting_started ... tg?s[]=otg