Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brickman runs programs from home rather than current directory. #575

Closed
laurensvalk opened this issue Mar 16, 2016 · 1 comment
Closed

Comments

@laurensvalk
Copy link

Can be reproduced as follows:

Say you have a script /home/robot/testdir/showdir.sh:

pwd
sleep 2

When on a terminal, going into the folder and running the script we get, as expected:

robot@ev3dev:~$ cd testdir/
robot@ev3dev:~/testdir$ ./showdir.sh 
/home/robot/testdir

But in brickman the display reads:

/home/robot
@dlech dlech added this to the ev3dev-next milestone Mar 17, 2016
dlech added a commit to ev3dev/brickman that referenced this issue May 13, 2016
Programs may rely on files in the same directory, so make the
parent directory the working directory.

Also changed to using runuser instead of sudo since it is more
appropriate for this type of (non-interactive) usage.

Issue ev3dev/ev3dev#575
@dlech dlech added the fix committed (not released yet) A fix is in progress (source code is fixed), but not released yet label May 13, 2016
@dlech dlech self-assigned this May 13, 2016
@dlech dlech removed the fix committed (not released yet) A fix is in progress (source code is fixed), but not released yet label Jun 17, 2016
@dlech
Copy link
Member

dlech commented Jun 17, 2016

Fix has been released in brickman 0.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants