7 lines
291 B
Bash
Executable file
7 lines
291 B
Bash
Executable file
#!/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
|
|
[[ -n "$ZEITDL_UID" ]] && chown $ZEITDL_UID "$out"
|
|
[[ -n "$ZEITDL_GID" ]] && chgrp $ZEITDL_GID "$out"
|
|
fi
|