Run abra.sh commands with /bin/bash if available. #357

Closed
opened 2022-11-08 13:11:40 +00:00 by moritz · 1 comment
Member

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)

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 https://git.coopcloud.tech/coop-cloud/nextcloud/pulls/29#issuecomment-14305_
moritz added the
enhancement
abra
labels 2022-11-08 13:11:40 +00:00
Owner

Nice yep, some conditional logic to which /bin/bash in the remote should suffice. Then determining the shell from there? If one ctrl-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.

Nice yep, some conditional logic to `which /bin/bash` in the remote should suffice. Then determining the shell from there? If one `ctrl-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.
moritz self-assigned this 2022-11-11 08:52:04 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#357
No description provided.