From 547b1373c39f7566433fc789d157941d59af90be Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Fri, 15 Sep 2023 17:51:49 +0200 Subject: [PATCH] Summon: Don't strip newline from machine keys --- summon-wrapper | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/summon-wrapper b/summon-wrapper index 21404b4..2e390b7 100755 --- a/summon-wrapper +++ b/summon-wrapper @@ -1,3 +1,8 @@ #!/bin/sh -passage show $(echo "${@}"|tr : \ ) +NAME=$(echo "${@}"|tr : \ ) +if [[ "$NAME" == machine/* ]]; then + passage show "${NAME}" +else + passage show "${NAME}" | head -c -1 +fi