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

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
1 changed files with 8 additions and 5 deletions

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