bicycle-statistics/run.sh
2021-02-01 10:35:15 +01:00

13 lines
202 B
Bash
Executable File

#!/bin/sh
python3 -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