rename CHOWN_* env vars to ZEITDL_*
This commit is contained in:
parent
a7701168a1
commit
9a42317c4e
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
[[ -n "$CHOWN_UID" || -n "$CHOWN_GID" ]] && chown_arg='-q'
|
||||
[[ -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 "$CHOWN_UID" ]] && chown $CHOWN_UID "$out"
|
||||
[[ -n "$CHOWN_GID" ]] && chgrp $CHOWN_GID "$out"
|
||||
[[ -n "$ZEITDL_UID" ]] && chown $ZEITDL_UID "$out"
|
||||
[[ -n "$ZEITDL_GID" ]] && chgrp $ZEITDL_GID "$out"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue