Summon: Don't strip newline from machine keys

This commit is contained in:
Tobias Manske 2023-09-15 17:51:49 +02:00
parent 8024ba0dad
commit 547b1373c3
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

@ -1,3 +1,8 @@
#!/bin/sh #!/bin/sh
passage show $(echo "${@}"|tr : \ ) NAME=$(echo "${@}"|tr : \ )
if [[ "$NAME" == machine/* ]]; then
passage show "${NAME}"
else
passage show "${NAME}" | head -c -1
fi