Skip to content

Commit f41a2af

Browse files
committed
bump version and fix installer
1 parent ba75f7b commit f41a2af

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20-alpine as builder
1+
FROM golang:1.22-alpine as builder
22
RUN apk add --no-cache git gcc musl-dev
33
WORKDIR /go/croc
44
COPY . .

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg"
55
width="408px" border="0" alt="croc">
66
<br>
7-
<a href="https://github.com/schollz/croc/releases/latest"><img src="https://img.shields.io/badge/version-v9.6.6-brightgreen.svg?style=flat-square" alt="Version"></a>
7+
<a href="https://github.com/schollz/croc/releases/latest"><img src="https://img.shields.io/badge/version-v9.6.8-brightgreen.svg?style=flat-square" alt="Version"></a>
88
<a href="https://coveralls.io/github/schollz/croc"><img src="https://img.shields.io/badge/coverage-81%25-green.svg?style=flat-square" alt="Coverage"></a>
99
<a href="https://travis-ci.org/schollz/croc"><img
1010
src="https://img.shields.io/travis/schollz/croc.svg?style=flat-square" alt="Build

src/cli/cli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func Run() (err error) {
3636
app := cli.NewApp()
3737
app.Name = "croc"
3838
if Version == "" {
39-
Version = "v9.6.6-1e57206"
39+
Version = "v9.6.8"
4040
}
4141
app.Version = Version
4242
app.Compiled = time.Now()

src/install/default.txt

+25-25
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ main() {
528528
local autocomplete_install_rcode
529529

530530
croc_bin_name="croc"
531-
croc_version="9.6.6"
531+
croc_version="9.6.7"
532532
croc_dl_ext="tar.gz"
533533
croc_base_url="https://github.com/schollz/croc/releases/download"
534534
prefix="${1}"
@@ -593,11 +593,11 @@ main() {
593593
* ) croc_arch="unknown";;
594594
esac
595595

596-
croc_file="${croc_bin_name}_${croc_version}_${croc_os}-${croc_arch}.${croc_dl_ext}"
597-
croc_checksum_file="${croc_bin_name}_${croc_version}_checksums.txt"
596+
croc_file="${croc_bin_name}_v${croc_version}_${croc_os}-${croc_arch}.${croc_dl_ext}"
597+
croc_checksum_file="${croc_bin_name}_v${croc_version}_checksums.txt"
598598
croc_url="${croc_base_url}/v${croc_version}/${croc_file}"
599599
croc_checksum_url="${croc_base_url}/v${croc_version}/${croc_checksum_file}"
600-
600+
echo "${croc_url}" "${tmpdir}" "${croc_file}"
601601
download_file "${croc_url}" "${tmpdir}" "${croc_file}"
602602
download_file_rcode="${?}"
603603
if [[ "${download_file_rcode}" == "0" ]]; then
@@ -713,27 +713,27 @@ main() {
713713
exit 1
714714
fi
715715

716-
case "$(basename ${SHELL})" in
717-
"bash" ) install_file_linux "${tmpdir}/${bash_autocomplete_file}" "${bash_autocomplete_prefix}/croc";
718-
autocomplete_install_rcode="${?}";;
719-
"zsh" ) install_file_linux "${tmpdir}/${zsh_autocomplete_file}" "${zsh_autocomplete_prefix}/zsh_autocomplete_croc";
720-
autocomplete_install_rcode="${?}";
721-
print_message "== You will need to add the following to your ~/.zshrc to enable autocompletion" "info";
722-
print_message "\nPROG=croc\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/zsh_autocomplete_croc\n" "info";;
723-
*) autocomplete_install_rcode="1";;
724-
esac
725-
726-
if [[ "${autocomplete_install_rcode}" == "0" ]] ; then
727-
print_message "== Installed autocompletions for $(basename "${SHELL}")" "ok"
728-
elif [[ "${autocomplete_install_rcode}" == "1" ]]; then
729-
print_message "== Failed to install ${bash_autocomplete_file}" "error"
730-
elif [[ "${autocomplete_install_rcode}" == "20" ]]; then
731-
print_message "== Failed to locate 'install' command" "error"
732-
elif [[ "${autocomplete_install_rcode}" == "21" ]]; then
733-
print_message "== Failed to locate 'sudo' command" "error"
734-
else
735-
print_message "== Install attempt returned an unexpected value of ${autocomplete_install_rcode}" "error"
736-
fi
716+
# case "$(basename ${SHELL})" in
717+
# "bash" ) install_file_linux "${tmpdir}/${bash_autocomplete_file}" "${bash_autocomplete_prefix}/croc";
718+
# autocomplete_install_rcode="${?}";;
719+
# "zsh" ) install_file_linux "${tmpdir}/${zsh_autocomplete_file}" "${zsh_autocomplete_prefix}/zsh_autocomplete_croc";
720+
# autocomplete_install_rcode="${?}";
721+
# print_message "== You will need to add the following to your ~/.zshrc to enable autocompletion" "info";
722+
# print_message "\nPROG=croc\n_CLI_ZSH_AUTOCOMPLETE_HACK=1\nsource /etc/zsh/zsh_autocomplete_croc\n" "info";;
723+
# *) autocomplete_install_rcode="1";;
724+
# esac
725+
726+
# if [[ "${autocomplete_install_rcode}" == "0" ]] ; then
727+
# print_message "== Installed autocompletions for $(basename "${SHELL}")" "ok"
728+
# elif [[ "${autocomplete_install_rcode}" == "1" ]]; then
729+
# print_message "== Failed to install ${bash_autocomplete_file}" "error"
730+
# elif [[ "${autocomplete_install_rcode}" == "20" ]]; then
731+
# print_message "== Failed to locate 'install' command" "error"
732+
# elif [[ "${autocomplete_install_rcode}" == "21" ]]; then
733+
# print_message "== Failed to locate 'sudo' command" "error"
734+
# else
735+
# print_message "== Install attempt returned an unexpected value of ${autocomplete_install_rcode}" "error"
736+
# fi
737737

738738
print_message "== Installation complete" "ok"
739739

0 commit comments

Comments
 (0)