image building: fix comment for relPath
This commit is contained in:
parent
c6fbbbab66
commit
042bd9340b
|
@ -52,7 +52,7 @@ in
|
||||||
(builtins.substring 0 (builtins.stringLength sub) super) == sub
|
(builtins.substring 0 (builtins.stringLength sub) super) == sub
|
||||||
);
|
);
|
||||||
# return the (string) path to get from `stem` to `path`
|
# return the (string) path to get from `stem` to `path`
|
||||||
# XXX: not sure how this behaves if the path doesn't contain the stem.
|
# or errors if not a sub-path
|
||||||
relPath = stem: path: (
|
relPath = stem: path: (
|
||||||
builtins.head (builtins.match "^${stem}(.+)" path)
|
builtins.head (builtins.match "^${stem}(.+)" path)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user