pinokiod 2.15.23 → 2.15.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/kernel/util.js +4 -7
  2. package/package.json +1 -1
package/kernel/util.js CHANGED
@@ -53,20 +53,17 @@ const openfs = (dirPath) => {
53
53
  const platform = os.platform()
54
54
  switch (platform) {
55
55
  case 'darwin':
56
- command = 'open';
56
+ command = `open -R "${dirPath}"`;
57
57
  break;
58
58
  case 'win32':
59
- command = 'explorer';
59
+ command = `explorer /select,"${dirPath}" & timeout /t 1 >nul`;
60
60
  break;
61
61
  default:
62
- command = 'xdg-open';
62
+ command = `xdg-open "${dirPath}"`;
63
63
  break;
64
64
  }
65
- let c = `${command} "${dirPath}"`
66
- console.log(c)
67
- child_process.exec(c)
65
+ child_process.exec(command)
68
66
  }
69
-
70
67
  const parse_env_detail = async (filename) => {
71
68
  // takes env and returns an array
72
69
  const config = parse_env(filename)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.15.23",
3
+ "version": "2.15.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {