Skip to content

Commit ee1a8a3

Browse files
author
haghish
committed
2.3.0
1 parent 4921276 commit ee1a8a3

File tree

6 files changed

+24
-8
lines changed

6 files changed

+24
-8
lines changed

github.ado

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// documentation are written for MARKDOC package
22

33
/***
4-
_v. 2.2.0_
4+
_v. 2.3.0_
55
66
github
77
======
@@ -504,6 +504,9 @@ prog define github
504504
if missing("`version'") & !missing("`stable'") {
505505
quietly github query `anything'
506506
local version `r(latestversion)'
507+
508+
// check the writing permission of the currnt working directory
509+
wdpermissions
507510
}
508511

509512
// Installing an archived version

github.pkg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
v 2.2.0
1+
v 2.3.0
22
d 'GITHUB': github package manager
33
d
44
d search, install, and manage github packages
55
d
6-
d Distribution-Date: 20210603
6+
d Distribution-Date: 20210920
77
d License: MIT
88
d
99
F abspath.ado
1010
F abspath.sthlp
11-
F gitget.ado
1211
F gitget.dta
1312
F gitget.sthlp
1413
F gitgetlist.ado
@@ -35,5 +34,6 @@ F make.ado
3534
F make.dlg
3635
F make.sthlp
3736
F makedlg.ado
37+
F wdpermissions.ado gitget.ado
3838
f gitget.dta
3939
f githubfiles.dta

github.sthlp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{smcl}
2-
{it:v. 2.2.0}
2+
{it:v. 2.3.0}
33

44

55
{title:github}

make.do

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// DO NOT FORGET to update the version of the package, if changed!
44
// for more information visit http://github.com/haghish/github
55

6-
make github, replace toc pkg version(2.2.0) ///
6+
make github, replace toc pkg version(2.3.0) ///
77
license("MIT") ///
88
author("E. F. Haghish") ///
99
affiliation("University of Göttingen") ///
@@ -12,7 +12,7 @@ make github, replace toc pkg version(2.2.0) ///
1212
title("github package manager") ///
1313
description("search, install, and manage github packages") ///
1414
install("abspath.ado;abspath.sthlp;githubfindall.ado;" ///
15-
"githubfindall.sthlp;" ///
15+
"githubfindall.sthlp;wdpermissions.ado" ///
1616
"gitget.ado;gitget.dta;gitget.sthlp;gitgetlist.ado;github.ado;" ///
1717
"github.dlg;github.sthlp;githubcheck.ado;githubconfirm.ado;" ///
1818
"githubdb.ado;githubdependency.ado;githubfiles.dta;" ///

stata.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v 2.2.0
1+
v 2.3.0
22
d Materials by E. F. Haghish
33
d University of Göttingen
44

wdpermissions.ado

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
program define wdpermissions
2+
capture quietly tempname myfile
3+
capture quietly file open `myfile' using githubpackagetestingwdpermissions, write replace
4+
if _rc != 0 {
5+
di as err "Writing permission is not granted for the current working directory" _n
6+
error 1
7+
}
8+
else {
9+
global wdpermissions 1
10+
capture quietly file close `myfile'
11+
capture quietly rm githubpackagetestingwdpermissions
12+
}
13+
end

0 commit comments

Comments
 (0)