Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: show version beta if git describe doesn't find any latest rele…
Browse files Browse the repository at this point in the history
…ase tag

This can happen in case if the user downloads the plugin with
`--depth=1`.
  • Loading branch information
CodesOfRishi committed Jan 18, 2022
1 parent 741edc6 commit 349b617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feats/info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ __smartcd::version_info() {
local colr87 && colr87=$( tput setaf 87 )
local colr_reset && colr_reset=$( tput sgr 0 )

[[ ${SMARTCD_VERSION} = *"-"* ]] && SMARTCD_VERSION=${SMARTCD_VERSION%%-*}"+beta"
[[ -z ${SMARTCD_VERSION} || ${SMARTCD_VERSION} = *"-"* ]] && SMARTCD_VERSION=${SMARTCD_VERSION%%-*}"+beta"
printf '%s\n' "SmartCd by Rishi K. - ${colr87}${SMARTCD_VERSION}${colr_reset}"
printf '%s\n' "The MIT License (MIT)"
printf '%s\n' "Copyright (c) 2021 Rishi K."
Expand Down

0 comments on commit 349b617

Please sign in to comment.