Skip to content

Commit

Permalink
Merge pull request #101 from terraform-google-modules/adrienthebo/pre…
Browse files Browse the repository at this point in the history
…conditions-python3

Preconditions script is python3 only
  • Loading branch information
morgante authored Jan 10, 2019
2 parents 1af4cc5 + 2a5b6d7 commit 7b7fc61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/preconditions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if command -v python 1>/dev/null; then
if command -v python3 1>/dev/null; then
BASEDIR="$(dirname "$0")"
SCRIPT="$BASEDIR/preconditions/preconditions.py"
exec "$SCRIPT" "$@"
else
echo "Unable to check project-factory preconditions: python executable not in PATH" 1>&2
echo "Unable to check project-factory preconditions: python3 executable not in PATH" 1>&2
fi
2 changes: 1 addition & 1 deletion scripts/preconditions/preconditions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright 2018 Google LLC
#
Expand Down

0 comments on commit 7b7fc61

Please sign in to comment.