commit | 885799aecd4c1ddb2d89f35af33eb75e5a08ef82 | [log] [tgz] |
---|---|---|
author | Christian Aistleitner <christian@quelltextlich.at> | Tue Mar 19 08:41:08 2013 +0100 |
committer | Christian Aistleitner <christian@quelltextlich.at> | Tue Mar 19 08:41:08 2013 +0100 |
tree | 743b889c301cff52c30d0ab36f8dd7b84471881e | |
parent | 47c4e459d3da0e7d0014b444b39e0602e8e15551 [diff] |
Fix 'gerrit.sh restart' for relative paths Trying to restart gerrit using gerrit/site/bin/gerrit.sh restart failed with ** ERROR: Cannot locate gerrit.sh as gerrit.sh internally changed the current directory to the gerrit site, while still trying to invoke itself using $0. We add a fallback to also look for $0 in the initial directory. Change-Id: I8ba9306cf875aa4ec8e5bb8c693360dafdcd16b9