#!/bin/bash

cp -R scriptmodules/ports/* "/home/pi/RetroPie-Setup/scriptmodules/ports/"
cp -R scriptmodules/emulators/* "/home/pi/RetroPie-Setup/scriptmodules/emulators"
cp -R scriptmodules/supplementary/* "/home/pi/RetroPie-Setup/scriptmodules/supplementary"

#!/bin/bash

cp -R scriptmodules/ports/* "/home/pi/RetroPie-Setup/scriptmodules/ports/"
cp -R scriptmodules/emulators/* "/home/pi/RetroPie-Setup/scriptmodules/emulators"
cp -R scriptmodules/supplementary/* "/home/pi/RetroPie-Setup/scriptmodules/supplementary"
cp -R scriptmodules/libretrocores/* "/home/pi/RetroPie-Setup/scriptmodules/libretrocore"

Add the libretrocores to the install script.
Add the libretrocores to the install script.

Thanks to jonnykesh.