SyntaxFix
Write A Post
Hire A Developer
Questions
Just change the last "&&" into ";" and it will cd back no matter if the command fails or succeeds:
cd SOME_PATH && run_some_command ; cd -