Create tf_env_collect.sh
This commit is contained in:
parent
da70b83f35
commit
0d2f691832
@ -16,10 +16,20 @@
|
||||
|
||||
set -u # Check for undefined variables
|
||||
|
||||
die() {
|
||||
# Print a message and exit with code 1.
|
||||
#
|
||||
# Usage: die <error_message>
|
||||
# e.g., die "Something bad happened."
|
||||
|
||||
echo $@
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "Collecting system information..."
|
||||
|
||||
OUTPUT_FILE=tf_env.txt
|
||||
python_bin_path=$(which python || which python3 || true)
|
||||
python_bin_path=$(which python || which python3 || die "Cannot find Python binary")
|
||||
|
||||
{
|
||||
echo
|
||||
|
Loading…
Reference in New Issue
Block a user