#!/bin/bash

if [ "$1" = "" ] ; then
  exec tini -- ydls-server -info -formats "$FORMATS" -listen "$LISTEN"
else
  exec ydls-get -formats /etc/formats.json "$@"
fi

#!/bin/bash

if [ "$1" = "" ] ; then
  exec tini -- ydls-server -info -formats "$FORMATS" -listen "$LISTEN"
else
  exec ydls-get -formats "$FORMATS" "$@"
fi

Use for get mode also
Use  for get mode also
