28 lines
663 B
Bash
28 lines
663 B
Bash
#!/bin/bash -e
|
|
#
|
|
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
|
|
#
|
|
# NVIDIA CORPORATION and its licensors retain all intellectual property
|
|
# and proprietary rights in and to this software, related documentation
|
|
# and any modifications thereto. Any use, reproduction, disclosure or
|
|
# distribution of this software and related documentation without an express
|
|
# license agreement from NVIDIA CORPORATION is strictly prohibited.
|
|
|
|
function print_color {
|
|
tput setaf $1
|
|
echo "$2"
|
|
tput sgr0
|
|
}
|
|
|
|
function print_error {
|
|
print_color 1 "$1"
|
|
}
|
|
|
|
function print_warning {
|
|
print_color 3 "$1"
|
|
}
|
|
|
|
function print_info {
|
|
print_color 2 "$1"
|
|
}
|