feat: echo commit

main
zijiren233 3 days ago
parent 254a621b3b
commit 13c93e17c9

@ -23,6 +23,7 @@ function print_dep_env_help() {
function init_dep() {
local git_commit
git_commit="$(git rev-parse --short HEAD)" || git_commit="dev"
echo -e "${COLOR_LIGHT_BLUE}Commit:${COLOR_RESET} ${COLOR_LIGHT_CYAN}${git_commit}${COLOR_RESET}"
set_default "VERSION" "${git_commit}"
# replace space, newline, and double quote

Loading…
Cancel
Save