diff --git a/start-server.sh b/start-server.sh index db1244f..4b48e31 100755 --- a/start-server.sh +++ b/start-server.sh @@ -15,7 +15,11 @@ if [ -n "$FORGE_PACK_ZIP" ]; then curl -L "$FORGE_PACK_ZIP" -o pack.zip unzip pack.zip directory="$(find . -type d -iname "mods" -execdir pwd \; | sort -n | head -n 1)" - echo "Found modpack directory: $directory" + if [ -z "$directory" ]; then + echo "Unable to find mods directory" + else + echo "Found modpack directory: $directory" + fi rsync -av --ignore-existing "$directory"/ /minecraft/ popd > /dev/null 2>&1 fi