programs.rclone: fix injecting secret when value begins with "-"

This commit is contained in:
Kylie McClain 2025-08-28 16:18:39 -04:00 committed by Austin Horstman
parent 4896177e2c
commit e44549074a
3 changed files with 12 additions and 8 deletions

View file

@ -259,7 +259,7 @@ in
if ! ${lib.getExe cfg.package} config update \
${remote.name} config_refresh_token=false \
${secret} "$(cat "${secretFile}")" \
${secret}="$(cat "${secretFile}")" \
--non-interactive; then
echo "Failed to inject secret \"${secretFile}\""
cleanup