#!/usr/bin/env bash if [ "$#" -ne 2 ]; then echo "Usage: $0 " exit 1 fi PARAMETER=$1 NEW_VALUE=$2 # Список файлов FILES=( "credentials.json" "docker-compose.yml" "checker.py" ) for FILE in "${FILES[@]}"; do EXPANDED_FILE=$(eval echo "$FILE") sed -i "s|###$PARAMETER###|$NEW_VALUE|g" "$EXPANDED_FILE" done