fix: bash logic