sorry i dont this this cause problem when try it in phoenix os yknow i try my script on prime os and there this will work
ramdisk=ramdisk.img < this deleted and change after zcat data with real name ramdisk
ramdiskfold=/data/ramdisk
mkdir $ramdiskfold && ( cd $ramdiskfold && zcat...