0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

wrangling another batch of wild global vars that should be local vars

This commit is contained in:
Micheal Quinn 2019-08-11 16:35:51 -05:00
parent bf15c4c424
commit d39266a36d
No known key found for this signature in database
GPG key ID: 0E7217F3C30BA059

View file

@ -44,6 +44,9 @@ PREFIX="/usr/local/bin"
# RETURNS: 0
#-------------------------------------------------------------------------------
print_help() {
local help_header
local help_message
help_header="croc Installer Script"
help_message="Usage:
-p, --prefix
@ -100,6 +103,7 @@ print_message() {
make_tempdir() {
local template
local tempdir
local tempdir_rcode
template="${1}.XXXXXX"
@ -218,6 +222,7 @@ download_file() {
checksum_check() {
local checksum_file
local file
local dir
local rcode
local shasum_1
local shasum_2