better logging; run_once check for pull state
This commit is contained in:
@@ -13,10 +13,13 @@ class PermissionState extends State {
|
||||
}
|
||||
|
||||
async check() {
|
||||
const path = await this._path()
|
||||
const permissions = `${await path.permissions()}`.trim()
|
||||
const target = `${this._config.level}`.trim()
|
||||
return permissions === target
|
||||
try {
|
||||
const path = await this._path()
|
||||
const permissions = `${await path.permissions()}`.trim()
|
||||
const target = `${this._config.level}`.trim()
|
||||
return permissions === target
|
||||
} catch (e) {}
|
||||
return false
|
||||
}
|
||||
|
||||
async reverse() {
|
||||
|
||||
Reference in New Issue
Block a user