bicycle-statistics/run.sh
Thomas Klaehn d414cbaed5 bicycle-statistics: Switch to alpine linux base image
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
2018-07-26 16:41:11 +02:00

13 lines
201 B
Bash
Executable File

#!/bin/sh
python -m bicycle_statistics /bs_in /bs_out
# if argument(s) given - execute argument(s) in container. Otherwise loop.
if [ "$#" -gt 0 ]; then
exec $@
else
while :;
do
sleep 1
done
fi