Run abra.sh commands with /bin/bash if available. #357
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Commands run by abra.sh are always executed using
/bin/sh
.Writing sophisticated functions in
/bin/sh
can get quite complicated.Choosing
/bin/bash
to run commands if it is available would be very convenient.Related to coop-cloud/nextcloud#29 (comment)
Nice yep, some conditional logic to
which /bin/bash
in the remote should suffice. Then determining the shell from there? If onectrl-f
's in https://git.coopcloud.tech/coop-cloud/abra/src/branch/main/cli/app/cmd.go for/bin/sh
, it's the place to start.