mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
* first action! (#1)
This commit is contained in:
parent
8deacc95b1
commit
ace1e6a69a
3750 changed files with 1155519 additions and 0 deletions
28
node_modules/xdg-basedir/index.js
generated
vendored
Normal file
28
node_modules/xdg-basedir/index.js
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
'use strict';
|
||||
const os = require('os');
|
||||
const path = require('path');
|
||||
|
||||
const home = os.homedir();
|
||||
const env = process.env;
|
||||
|
||||
exports.data = env.XDG_DATA_HOME ||
|
||||
(home ? path.join(home, '.local', 'share') : null);
|
||||
|
||||
exports.config = env.XDG_CONFIG_HOME ||
|
||||
(home ? path.join(home, '.config') : null);
|
||||
|
||||
exports.cache = env.XDG_CACHE_HOME || (home ? path.join(home, '.cache') : null);
|
||||
|
||||
exports.runtime = env.XDG_RUNTIME_DIR || null;
|
||||
|
||||
exports.dataDirs = (env.XDG_DATA_DIRS || '/usr/local/share/:/usr/share/').split(':');
|
||||
|
||||
if (exports.data) {
|
||||
exports.dataDirs.unshift(exports.data);
|
||||
}
|
||||
|
||||
exports.configDirs = (env.XDG_CONFIG_DIRS || '/etc/xdg').split(':');
|
||||
|
||||
if (exports.config) {
|
||||
exports.configDirs.unshift(exports.config);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue