summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorPol Vinogradov2014-07-03 20:07:12 -0400
committerPol Vinogradov2014-07-03 20:07:12 -0400
commit132363d653976f6a21006996d41d91ef902ce85f (patch)
treee27bc2a95664298db934f6f21e451fe6f16455fa /FUNCTIONS
parentdc4460b874cdce1f43c52da360f8a09d9ded4c46 (diff)
FUNCTIONS: more fixes to recent changes
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS10
1 files changed, 5 insertions, 5 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index 07a2322c35..78cc04857d 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -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")"
}