fixed package/path descrepency
This commit is contained in:
@@ -81,8 +81,9 @@ int main(string[] args) {
|
|||||||
}
|
}
|
||||||
auto package_path = to!string(files[0]);
|
auto package_path = to!string(files[0]);
|
||||||
if(!package_path.canFind(".d")){
|
if(!package_path.canFind(".d")){
|
||||||
package_path = package_path ~ "/package.d";
|
//package_path = package_path ~ "/package.d";
|
||||||
string link_script = "ln -s " ~ package_path.replace(".d","") ~ " " ~ package_name;
|
auto auto_package_name = package_path.split("/")[$-1];
|
||||||
|
string link_script = "ln -s " ~ package_path.replace(".d","") ~ " " ~ auto_package_name;
|
||||||
auto link_result = run_script(link_script);
|
auto link_result = run_script(link_script);
|
||||||
} else {
|
} else {
|
||||||
string link_script = "ln -s " ~ package_path ~ " " ~ package_name ~ ".d";
|
string link_script = "ln -s " ~ package_path ~ " " ~ package_name ~ ".d";
|
||||||
|
|||||||
Reference in New Issue
Block a user