Download the fixed ServerStart.sh for Agrarian Skies for Linux and MacOS headless servers.

This file is compress in a tar archive, so as to preserve the unixy nature of the file. You will need to unpack it with a line like this:

tar zxvf ServerStart.tgz

Then you will need to copy it into place on your server.