fixed typo in docker entrypoint

This commit is contained in:
Leon Haag-Fank 2024-04-05 13:11:52 +02:00
parent 0e2e0a1441
commit 4c1557d53a

View file

@ -1,7 +1,7 @@
#!/bin/sh
[[ -n "$ZEITDL_UID" || -n "$ZEITDL_GID" ]] && chown_arg='-q'
if out=$(python ./zeit-dl "$ZEITDL_USER" "$ZEITDL_PASSWORD" ${ZEITDL_OPTIONS:=-o /data} $chown_arg) then
if out=$(python ./zeit-dl "$ZEITDL_USER" "$ZEITDL_PASSWORD" ${ZEITDL_OPTIONS:=-o /data} $chown_arg); then
[[ -n "$ZEITDL_UID" ]] && chown $ZEITDL_UID "$out"
[[ -n "$ZEITDL_GID" ]] && chgrp $ZEITDL_GID "$out"
fi