fixed rclone config content
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
818e58f179
commit
15541a5fb6
@ -2,8 +2,9 @@
|
||||
|
||||
set -e
|
||||
|
||||
# if RCLONE_CONFIG_CONTENT is empty and no config file was found
|
||||
if [ -z "$RCLONE_CONFIG_CONTENT" ] && [ ! -e "${RCLONE_CONFIG:=/config/rclone.conf}" ]; then
|
||||
if [ -n "$RCLONE_CONFIG_CONTENT" ]; then
|
||||
echo "$RCLONE_CONFIG_CONTENT" > "${RCLONE_CONFIG:=/config/rclone.conf}"
|
||||
elif [ ! -e "${RCLONE_CONFIG:=/config/rclone.conf}" ]; then
|
||||
echo "No rclone config found"
|
||||
rclone --config "${RCLONE_CONFIG:=/config/rclone.conf}" config
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user