Skip to content

Commit

Permalink
docs(cli): update install.sh to use CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune committed Apr 21, 2020
1 parent c9dbc02 commit d0fda04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cli/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ usage() {
local _cmd
_cmd="$(basename "${0}")"
cat <<USAGE
${_cmd}: Installs the Lacework cli tool.
${_cmd}: Installs the Lacework Command Line Interface.
USAGE:
${_cmd} [FLAGS]
Expand Down Expand Up @@ -50,15 +50,15 @@ main() {
esac
done

log "Installing the Lacework cli tool"
log "Installing the Lacework CLI"
create_workdir
check_platform
download_archive "$version" "$target"
verify_archive
extract_archive
install_cli
print_cli_version
log "The Lacework cli tool has been successfully installed."
log "The Lacework CLI has been successfully installed."
}

create_workdir() {
Expand Down Expand Up @@ -167,14 +167,14 @@ extract_archive() {
}

install_cli() {
log "Installing Lacework cli into $installation_dir"
log "Installing Lacework CLI into $installation_dir"
mkdir -pv "$installation_dir"
install -v "${archive_dir}/${binary_name}" "${installation_dir}/${binary_name}"
}

print_cli_version() {
info "Verifying installed lacework cli version"
"${installation_dir}/lacework" version
info "Verifying installed Lacework CLI version"
"${installation_dir}/${binary_name}" version
}

download_file() {
Expand Down

0 comments on commit d0fda04

Please sign in to comment.