Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Shell opened from command line menu does not move to project folder #234

@shiena

Description

@shiena

Operating System

OS: macOS Sierra 10.12.5
Unity: 2017.1.0p4
GitHub for Unity: v0.18-alpha

environment.FileSystem.WriteAllLines(envVarFile, new string[] { "cd $GHU_WORKINGDIR", "PATH=$GHU_FULLPATH:$PATH /bin/bash" });
Mono.Unix.Native.Syscall.chmod(envVarFile, (Mono.Unix.Native.FilePermissions)493); // -rwxr-xr-x mode (0755)
startInfo.FileName = "open";
startInfo.Arguments = $"-a Terminal {envVarFile}";
}
else
{
startInfo.FileName = "sh";
}
gitEnvironment.Configure(startInfo, workingDirectory);

Although the script refers to $GHU_WORKINGDIR and $GHU_FULLPATH, it seems that Terminal.app does not inherit the environment variable to the script.
Since these two variables are set by gitEnvironment.Configure , it is thought that they should be expanded afterwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions