Skip to content

Commit

Permalink
2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
haghish committed Jun 5, 2020
1 parent ac338e1 commit c389a9e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions github.ado
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,25 @@ prog define github
}

else if "`1'" == "findfile" {
// check for updates
if "$githubfilesglobal" == "" {
di as text "checking for database updates..."
qui github version github
local gversion : di "`r(version)'"
qui github query haghish/github
local lversion : di "`r(latestversion)'"
if "`gversion'" != "`lversion'" {
di as txt "{p}WARNING: Would you like to update {bf:github} package to version {bf:`lversion'}?" ///
" currently, your database is outdated:" _n

github list github

di _n(2)
}

global githubfilesglobal "checked"
}

// searching githubfiles database
preserve
sysuse githubfiles.dta, clear
Expand Down

0 comments on commit c389a9e

Please sign in to comment.