Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 75960e0

Browse files
committed
Scripts: 'Plex Autoscan URL Script' update.
- Will now ignore commented out lines when grepping ansible.cfg file.
1 parent e42f526 commit 75960e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/scripts/files/plex_autoscan_url.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function build_url() {
102102
head -1 ${CB_ACCOUNTS} | grep -q "\$ANSIBLE_VAULT"
103103
rc=$?
104104
if [[ ${rc} == 0 ]]; then
105-
VAULT_FILE=$(cat ${CB_ANSIBLE} | grep "vault_password_file" | sed 's/^.*=//' | sed "s/ //g")
105+
VAULT_FILE=$(cat ${CB_ANSIBLE} | grep "^vault_password_file" | sed 's/^.*=//' | sed "s/ //g")
106106
DOMAIN=$(ansible-vault view --vault-password-file=${VAULT_FILE} ${CB_ACCOUNTS} | yq -r .domain)
107107
elif [[ ${rc} == 1 ]]; then
108108
DOMAIN=$(cat ${CB_ACCOUNTS} | yq -r .domain)

0 commit comments

Comments
 (0)