easy install: two rc file update bugs fixed
The "msysgit doesnt have 'comm'" commit (from 2 days ago), had 2 bugs: - (smaller) the "+++" which was part of the diff header was triggering a spurious rc file "new variables" warning, but there were no actual variables to update - (bigger) worse, the grep command, when there were no matches, coupled with the "set -e" to kill the program right there (ouch!)
This commit is contained in:
parent
7afaafc54a
commit
98d73965b6
1 changed files with 3 additions and 1 deletions
|
@ -307,7 +307,9 @@ Let's see if we can use that instead of the default one..."
|
||||||
# msysgit doesn't have "comm". diff is not ideal for our purposes
|
# msysgit doesn't have "comm". diff is not ideal for our purposes
|
||||||
# because we only care about differences in one direction, but we'll
|
# because we only care about differences in one direction, but we'll
|
||||||
# have to make do...
|
# have to make do...
|
||||||
diff -u $tmpgli/glrc.old $tmpgli/glrc.new | grep '^+' > $tmpgli/glrc.comm13
|
set +e
|
||||||
|
diff -u $tmpgli/glrc.old $tmpgli/glrc.new | grep '^+.*\$' > $tmpgli/glrc.comm13
|
||||||
|
set -e
|
||||||
if [[ ! -s $tmpgli/glrc.comm13 ]]
|
if [[ ! -s $tmpgli/glrc.comm13 ]]
|
||||||
then
|
then
|
||||||
[[ $quiet == -q ]] || ${VISUAL:-${EDITOR:-vi}} $tmpgli/.gitolite.rc
|
[[ $quiet == -q ]] || ${VISUAL:-${EDITOR:-vi}} $tmpgli/.gitolite.rc
|
||||||
|
|
Loading…
Reference in a new issue