BUG: Fix error in bash if caught by @ElBrogrammer
TST: Address @ElBrogrammer comment