From 3668f9ec6b4dd096f2109557ca523b3d774ad6d1 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 22 Oct 2019 19:56:58 -0400 Subject: minor --- org/default_paths.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'org/default_paths.org') diff --git a/org/default_paths.org b/org/default_paths.org index e50881f..459d8b9 100644 --- a/org/default_paths.org +++ b/org/default_paths.org @@ -75,6 +75,9 @@ template PodManifest() { } return _manifest_path; } + string pods_collection_root_path() { + return (pod_manifest_path.length > 0) ? ((chainPath(pod_manifest_path, "..")).asNormalizedPath).array.to!string : ""; + } string pod_manifest_file_with_path() { string _k; if (exists(pod_manifest_path.chainPath(pod_manifest_filename).array)!=0) { @@ -141,7 +144,6 @@ template PathMatters() { return Env_(); } auto opt() { - auto _opt_actions = _opt_actions; struct Opt_ { auto action() { return _opt_actions; @@ -157,9 +159,8 @@ template PathMatters() { bool src_is_pod() { return (_manifested.pod_manifest_path.length > 0) ? true : false; } - auto collection_root() { - auto _collection_root = ((chainPath(_manifested.pod_manifest_path, "..")).asNormalizedPath).array; - return _collection_root; + string collection_root() { + return _manifested.pods_collection_root_path; } string manifest_filename() { return _manifested.pod_manifest_filename; -- cgit v1.2.3