Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
randrescastaneda committed Jul 10, 2020
1 parent 3a1bb61 commit 9aa9bfc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions povcalnet.ado
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ qui {
exit
}

* if (`lastMajor' > `crrMajor' | `lastMinor' > `crrMinor' | `lastPatch' > `crrPatch') {
if (`lastMajor'`lastMinor'`lastPatch' > `crrMajor'`crrMinor'`crrPatch') {
if (`lastMajor' > `crrMajor' | `lastMinor' > `crrMinor' | `lastPatch' > `crrPatch') {
* if (`lastMajor'`lastMinor'`lastPatch' > `crrMajor'`crrMinor'`crrPatch') {
cap window stopbox rusure "There is a new version of `cmd' in Github (`latestversion')." ///
"Would you like to install it now?"

if (_rc == 0) {
cap github update `cmd'
cap github install `repo', replace
if (_rc == 0) {
cap window stopbox note "Installation complete. please type" ///
"discard in your command window to finish"
Expand All @@ -135,7 +135,7 @@ qui {
else {
noi disp as err "there was an error in the installation. " _n ///
"please run the following to retry, " _n(2) ///
"{stata github update `cmd'}"
"{stata github install `repo', replace}"
local bye "error"
}
}
Expand Down Expand Up @@ -643,8 +643,8 @@ end
// ------------------------------------------------------------------------


findfile stata.trk
local fn = "`r(fn)'"
* findfile stata.trk
* local fn = "`r(fn)'"

cap mata: mata drop povcalnet_*()
mata:
Expand Down

0 comments on commit 9aa9bfc

Please sign in to comment.