fixup! Summon: Don't strip newline from machine keys
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Tobias Manske 2023-09-16 04:04:21 +02:00
parent af54b8ce71
commit b4af554f65
Signed by: tobias
GPG Key ID: 9164B527694A0709

View File

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