fix deprecated use of let-env
This commit is contained in:
parent
b7d18e4309
commit
27ae8145d6
1 changed files with 5 additions and 5 deletions
|
@ -104,12 +104,12 @@ def main [
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
let-env RESTIC_REPOSITORY = $"b2:($env.B2_BUCKET):($env.HOSTNAME)"
|
$env.RESTIC_REPOSITORY = $"b2:($env.B2_BUCKET):($env.HOSTNAME)"
|
||||||
|
|
||||||
let-env RCLONE_CONFIG = "/dev/null"
|
$env.RCLONE_CONFIG = "/dev/null"
|
||||||
let-env RCLONE_CONFIG_B2_TYPE = "b2"
|
$env.RCLONE_CONFIG_B2_TYPE = "b2"
|
||||||
let-env RCLONE_CONFIG_B2_ACCOUNT = $env.B2_ACCOUNT_ID
|
$env.RCLONE_CONFIG_B2_ACCOUNT = $env.B2_ACCOUNT_ID
|
||||||
let-env RCLONE_CONFIG_B2_KEY = $env.B2_ACCOUNT_KEY
|
$env.RCLONE_CONFIG_B2_KEY = $env.B2_ACCOUNT_KEY
|
||||||
|
|
||||||
if (rclone lsjson $"b2:($env.B2_BUCKET)/($env.HOSTNAME)/config" | from json | length | $in == 0) {
|
if (rclone lsjson $"b2:($env.B2_BUCKET)/($env.HOSTNAME)/config" | from json | length | $in == 0) {
|
||||||
let result = (do {restic init} | complete)
|
let result = (do {restic init} | complete)
|
||||||
|
|
Loading…
Reference in a new issue