Skip to content

Commit

Permalink
refactor: use default boot.sh/kube_home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed May 10, 2022
1 parent b6289cf commit b0d3f49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const globby = require('globby');
const ipt = require('ipt');
const path = require('path');
const fs = require('fs');

const KUBE_HOME = process.env['KUBE_HOME'];
const KUBE_BOOT = process.env['KUBE_BOOT'];
const homedir = require('os').homedir();
const KUBE_HOME = process.env['KUBE_HOME'] || `${homedir}/.kube`;
const KUBE_BOOT = process.env['KUBE_BOOT'] || `${homedir}/.kube/boot.sh`;
const opts = { stdin: process.stdin, stdout: process.stdout };
const gpt = ['*', '!boot.sh'];
const gopts = { onlyFiles: true, cwd: KUBE_HOME };
Expand Down

0 comments on commit b0d3f49

Please sign in to comment.