fixup! Summon: Don't strip newline from machine keys
This commit is contained in:
parent
af54b8ce71
commit
b4af554f65
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user