www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 64847626e7a7d7bf412226d0bcdcbe762c6dc7fb
parent 86d19f9effc7a0d8a2116d6a1d374042861dd5df
Author: Georges Dupéron <georges.duperon@gmail.com>
Date:   Sat, 30 Jun 2018 18:22:50 +0200

Replace indirect expansion by a nested shell invocation, to avoid having a dependency on bash

Diffstat:
Mutils/auto-push.sh | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/auto-push.sh b/utils/auto-push.sh @@ -28,8 +28,8 @@ key_iv_id="$5" # 123456789abc, part of encrypted_123456789abc_key and e deploy_directory="$6" # directory to copy on top of deploy_base_commit key_env_var_name="encrypted_${key_iv_id}_key" iv_env_var_name="encrypted_${key_iv_id}_key" -key="${!key_env_var_name}" -iv="${!iv_env_var_name}" +key="$(sh -c 'echo "${'"$key_env_var_name"'}"')" +iv="$(sh -c 'echo "${'"$iv_env_var_name"'}"')" if test "$(git config remote.origin.url)" != "$official_repo"; then echo "Not on official repo, will not deploy to ${deploy_repo}:${deploy_branch}."