diff options
author | Pol Vinogradov | 2014-07-03 20:07:12 -0400 |
---|---|---|
committer | Pol Vinogradov | 2014-07-03 20:07:12 -0400 |
commit | 132363d653976f6a21006996d41d91ef902ce85f (patch) | |
tree | e27bc2a95664298db934f6f21e451fe6f16455fa /FUNCTIONS | |
parent | dc4460b874cdce1f43c52da360f8a09d9ded4c46 (diff) |
FUNCTIONS: more fixes to recent changes
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -659,7 +659,7 @@ function prepare_select_branch() { ## Get uppercase spell name with _ instead of - #--- function get_up_spell_name() { - echo ${1:-$SPELL} | tr "-.+a-z" "__XA-Z" + echo ${1:-$SPELL} | tr '.+a-z-' '_XA-Z_' } #--- @@ -667,10 +667,10 @@ function get_up_spell_name() { #--- function get_scm_version() { local spell=$(get_up_spell_name) && - local spell_branch="$spell"_BRANCH && - local spell_autoupdate="$spell"_AUTOUPDATE && - echo "${!spell_branch:-scm}$( - [[ "${!spell_autoupdate}" = y ]] && date "+-%Y%m%d")" + local spell_branch=${"$spell"_BRANCH} && + local spell_autoupdate=${"$spell"_AUTOUPDATE} && + echo "${!$spell_branch:-scm}$( + [[ "${!$spell_autoupdate}" = y ]] && date "+-%Y%m%d")" } |