mirror of
https://github.com/aphrody-labs/msys2-devtools.git
synced 2026-10-14 04:19:12 +00:00
dbssh: Fix optional command handling
This commit is contained in:
1 parent
e8ae60581b
commit
3742567427
1 file changed
+7
-1
+7
-1
@@ -7,4 +7,10 @@ host=repo@msys2.appfleet.io
|
||||
# remote_gpga_socket="$(ssh "${host}" -- gpgconf --list-dirs agent-socket)"
|
||||
remote_gpga_socket="/home/repo/.gnupg/S.gpg-agent"
|
||||
|
||||
exec ssh -tt -A -R "${remote_gpga_socket}:$(gpgconf --list-dirs agent-extra-socket)" "${host}" -- bash -li "${@}"
|
||||
if test "${#}" -eq 0
|
||||
then
|
||||
args=()
|
||||
else
|
||||
args=(bash -lc "'\"\$@\"'" bash)
|
||||
fi
|
||||
exec ssh -tt -A -R "${remote_gpga_socket}:$(gpgconf --list-dirs agent-extra-socket)" "${host}" -- "${args[@]}" "${@}"
|
||||
Reference in new issue
Block a user