hook root from env
This commit is contained in:
parent
b60f0b759a
commit
36ff52ae5b
3
hooks.js
3
hooks.js
|
@ -3,8 +3,9 @@ const ms = require('ms');
|
|||
const os = require('os');
|
||||
const path = require('path');
|
||||
const { spawn } = require('child_process');
|
||||
const { getEnvVar } = require('./env.js');
|
||||
|
||||
const getHooksRoot = () => path.join(os.homedir(), '/.syncthing-hooks');
|
||||
const getHooksRoot = () => getEnvVar('ST_HOOK_DIR', path.join(os.homedir(), '/.syncthing-hooks'))
|
||||
|
||||
const readHooksRoot = async root => {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue