Rename ambigous command

This commit is contained in:
2025-06-01 23:51:21 +02:00
parent bf5f01a870
commit b200511d1c

View File

@@ -7,9 +7,9 @@ fetch_secret() {
local env="${2:?Environment is required}"
local output_file="${3:?}"
if command -v infisical &>/dev/null; then
if command -v infisical-dcli &>/dev/null; then
# If infisical CLI command is available, use it directly
infisical secrets --plain get "${target_secret}" --env "${env}" >"${output_file}"
infisical-dcli secrets --plain get "${target_secret}" --env "${env}" >"${output_file}"
else
script -q /dev/null \
-c "docker compose run --rm -t cli infisical secrets --plain get ""${target_secret}"" --env ""${env}""" \