mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
normalize paths for home dir too
This commit is contained in:
parent
ac7410a728
commit
0ec868b119
@ -277,8 +277,7 @@ define(function(require, exports, module) {
|
||||
|
||||
var reHome = new RegExp("^" + plugin.escapeRegExp(c9.home || "/home/ubuntu"));
|
||||
plugin.normalizePath = function(path){
|
||||
if (!path || path.charAt(0) == "~") return path;
|
||||
return normalize(path.replace(reHome, "~"));
|
||||
return path && normalize(path.replace(reHome, "~"));
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user