Skip to content

Commit

Permalink
fix: trim unnecessary part of version using string manipulation
Browse files Browse the repository at this point in the history
  • Loading branch information
CodesOfRishi committed Jan 17, 2022
1 parent bd458f9 commit 12dd48a
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 @@ -5,7 +5,7 @@ SMARTCD_VERSION="$( git --git-dir="${SMARTCD_ROOT}"/.git describe --tags --match
export SMARTCD_VERSION_OPT=${SMARTCD_VERSION_OPT-"-v --version"} # option for printing version information

__smartcd::version_info() {
printf '%s\n' "SmartCd by Rishi K. - ${SMARTCD_VERSION}"
printf '%s\n' "SmartCd by Rishi K. - ${SMARTCD_VERSION%%-*}"
printf '%s\n' "The MIT License (MIT)"
printf '%s\n' "Copyright (c) 2021 Rishi K."
}
Expand Down

0 comments on commit 12dd48a

Please sign in to comment.