orig_dir.md
March 2, 2020 ยท View on GitHub
orig_dir
Temporarily switches into the directory from which the script has been executed. (Bashible automatically switches to the script's directory on start.)
To switch into it, do
#!/usr/local/bin/bashible
echo I am in the script's directory now
@ This is a first block
- orig_dir
- echo I am in the original directory now
@ Another block
- echo back in the actual base_dir (the script's directory again)