mirror of https://github.com/schollz/croc.git
Adding in a banner...because all the cool kids are doing it.
This commit is contained in:
parent
7a6c4db5f9
commit
07a2abd808
|
@ -44,6 +44,31 @@ fi
|
||||||
# FUNCTIONS
|
# FUNCTIONS
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
#--- FUNCTION ----------------------------------------------------------------
|
||||||
|
# NAME: print_banner
|
||||||
|
# DESCRIPTION: Prints a banner
|
||||||
|
# PARAMETERS: none
|
||||||
|
# RETURNS: 0
|
||||||
|
#-------------------------------------------------------------------------------
|
||||||
|
print_banner() {
|
||||||
|
cat <<-'EOF'
|
||||||
|
=================================================
|
||||||
|
____
|
||||||
|
/ ___|_ __ ___ ___
|
||||||
|
| | | '__/ _ \ / __|
|
||||||
|
| |___| | | (_) | (__
|
||||||
|
\____|_| \___/ \___|
|
||||||
|
|
||||||
|
___ _ _ _
|
||||||
|
|_ _|_ __ ___| |_ __ _| | | ___ _ __
|
||||||
|
| || '_ \/ __| __/ _` | | |/ _ \ '__|
|
||||||
|
| || | | \__ \ || (_| | | | __/ |
|
||||||
|
|___|_| |_|___/\__\__,_|_|_|\___|_|
|
||||||
|
==================================================
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
#--- FUNCTION ----------------------------------------------------------------
|
#--- FUNCTION ----------------------------------------------------------------
|
||||||
# NAME: print_help
|
# NAME: print_help
|
||||||
# DESCRIPTION: Prints out a help message
|
# DESCRIPTION: Prints out a help message
|
||||||
|
@ -462,6 +487,7 @@ main() {
|
||||||
croc_base_url="https://github.com/schollz/croc/releases/download"
|
croc_base_url="https://github.com/schollz/croc/releases/download"
|
||||||
prefix="${1}"
|
prefix="${1}"
|
||||||
|
|
||||||
|
print_banner
|
||||||
print_message "== Install prefix set to ${prefix}" "info"
|
print_message "== Install prefix set to ${prefix}" "info"
|
||||||
|
|
||||||
tmpdir="$(make_tempdir "${croc_bin_name}")"
|
tmpdir="$(make_tempdir "${croc_bin_name}")"
|
||||||
|
|
Loading…
Reference in New Issue