Closed lenerd closed 5 years ago
Before, the sudo call was executed inside the cd context. With a working directory like '~/wd' this resulted in an error message if /root/wd would not exist.
I think the sudo call in the cd context is expanded to something like cd ~/wd && $command.
sudo
cd
cd ~/wd && $command
Before, the sudo call was executed inside the cd context. With a working directory like '~/wd' this resulted in an error message if /root/wd would not exist.
I think the
sudo
call in thecd
context is expanded to something likecd ~/wd && $command
.