mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(ischanged) add "/" on win
This commit is contained in:
parent
20febb9a1f
commit
79ac808e59
1 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
var fs = require('fs'),
|
||||
os = require('os'),
|
||||
path = require('path'),
|
||||
|
||||
Util = require('../util'),
|
||||
time = require('./timem'),
|
||||
|
|
@ -16,8 +15,7 @@
|
|||
|
||||
TimesReaded,
|
||||
|
||||
DIR_RAW = getDir() || __dirname + '/../../json/',
|
||||
DIR = path.normalize(DIR_RAW),
|
||||
DIR = getDir() || __dirname + '/../../json/',
|
||||
NAME_SHORT = DIR + 'changes',
|
||||
NAME = NAME_SHORT + '.json';
|
||||
|
||||
|
|
@ -51,7 +49,9 @@
|
|||
dir += '/ischanged';
|
||||
|
||||
if (!WIN)
|
||||
dir += sign + process.getuid() + '/';
|
||||
dir += sign + process.getuid();
|
||||
|
||||
dir += '/';
|
||||
}
|
||||
|
||||
return dir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue