Browse Source

Use jq to parse password info

expose_links
Drew Short 5 years ago
parent
commit
aed019db43
  1. 2
      assets/common.sh

2
assets/common.sh

@ -8,7 +8,7 @@ load_config() {
local rclone_config_file=$rclone_config_path/.rclone.conf
(jq -r '.source.config // empty' < "$1") > "$config_path"
config_pass=$('.source.password // ""' < "$1")
config_pass=$(jq -r '.source.password // ""' < "$1")
if [[ -n "${config_pass}" ]]; then
RCLONE_CONFIG_PASS="${config_pass}"

Loading…
Cancel
Save