summaryrefslogtreecommitdiffstats
path: root/ansible_collections/community/dns/tests/integration/replace-requirements.sh
blob: c3a52f5d1b7d516d14f587351045b6a0f77736c7 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
# Copyright (c) Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later

DIRECTORY="$(dirname "$0")"

if [ -e "${DIRECTORY}/$1" ]; then
    cp "${DIRECTORY}/$1" "${DIRECTORY}/requirements.txt"
fi