qports/qubes-pass/service-passquery.sh

14 lines
244 B
Bash
Raw Normal View History

2024-07-27 20:48:00 +00:00
#!/bin/bash
set -e
read -n 4096 cmd
cmd=$(echo "$cmd" | base64 -d)
if [ "$cmd" == "list-files" ] ; then
logger -t ruddo.PassQuery "requested password file list"
exec pass git ls-files | sed -e '/.gitattributes/d' -e '/.gpg-id/d'
fi