Twenga / twgit

Twgit is a free and open source assisting tools for managing features, hotfixes and releases on Git repositories. It provides simple, high-level commands to adopt the branching model describes in our documentation. Supported OS: Debian/Ubuntu Linux, Mac OS X 10.8 (Mountain Lion) or lower.
http://twgit.twenga.com/
Other
111 stars 34 forks source link

Error when running twgit #156

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi,

Since the latest version 1.16.0, when I run twgit I have this error, do you know why ? (I run it on a mac 10.10.1) :

/Developer/twgit/conf/twgit-dist.sh: line 107: error.bold: syntax error: invalid arithmetic operator (error token is ".bold")
/Developer/twgit/conf/twgit-dist.sh: line 70: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
/Developer/twgit/conf/twgit.sh: line 104: error.bold: syntax error: invalid arithmetic operator (error token is ".bold")
/Developer/twgit/inc/coloredUI.inc.sh: line 65: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
/Developer/twgit/inc/dyslexia.inc.sh: line 31: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
/Developer/twgit/inc/dyslexia.inc.sh: line 32: 1a2e1f1r1t1u: value too great for base (error token is "1a2e1f1r1t1u")
/Developer/twgit/inc/dyslexia.inc.sh: line 225: autoupdate: command not found
/Developer/twgit/inc/dyslexia.inc.sh: line 226: assert_git_configured: command not found
/Developer/twgit/inc/dyslexia.inc.sh: line 227: assert_connectors_well_configured: command not found
/Developer/twgit/inc/dyslexia.inc.sh: line 213: guess_dyslexia: command not found

/Developer/twgit/inc/coloredUI.inc.sh: line 76: help.header: syntax error: invalid arithmetic operator (error token is ".header")
geoffroy-aubry commented 9 years ago

Hi,

declare: -A: invalid option is due to Bash version < 4. Have you make an OS update recently which has modified your configuration?

For diagnostic purpose:

Regards, Geoffroy

ghost commented 9 years ago

Arf I forgot about the bash version requirement... I updated it to the latest version and it works. Sorry and thank you!

geoffroy-aubry commented 9 years ago

No problem :-)