How to define variables myself? #302
-
I followed the instruction on Variables :: resticprofile, but it did not work.
{{ $tmp := 'D:\tmp'}}
[default.env]
TMP = '{{ $tmp }}'
RESTIC_PASSWORD = '123'
RESTIC_REPOSITORY = '.\repo'
|
Beta Was this translation helpful? Give feedback.
Answered by
creativeprojects
Feb 7, 2024
Replies: 1 comment 4 replies
-
Sorry for the late reply: A string in go templates can only be declared using double quotes, it doesn't work with single quotes. Try this instead:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have updated the documentation accordingly:
https://7a57af69.resticprofile.pages.dev/configuration/variables/#hand-made-variables