blob: 302e65905c2594b30fe5c827d67f2e449a14f422 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env bash
TRAVIS_TEST_VER="v1.6.2"
TAR_FILE="$TRAVIS_TEST_VER.tar.gz"
# Prompt for Ansible role name
read -r -p "Enter the Ansible role name: " input
# Update .travis.yml with Ansible role name
sed -i '' "s/replace_role/${input}/g" ".travis.yml"
# Update tests/test.yml with Ansible role name
sed -i '' "s/replace_role/${input}/g" "tests/test.yml"
# Cleanup
if [ -f $TAR_FILE ]; then
rm $TAR_FILE
fi
|