Skip to content
Snippets Groups Projects
Commit 2a2edcbb authored by Olivier Dion's avatar Olivier Dion
Browse files

agent/tools: Better make-account-archive

Change-Id: I5924025c4c9e37f7ebe554151b39a8da5eb5154e
parent fddb2ef8
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
tmp=$(mktemp)
tmp=$(mktemp --directory)
export XDG_CONFIG_HOME=$tmp
export XDG_CACHE_HOME=$tmp
......@@ -8,7 +8,18 @@ export XDG_DATA_HOME=$tmp
archive=$1
./agent - <<EOF
inputs=$(mktemp --suffix=.scm)
outputs=$(mktemp)
cat -> "$inputs" <<EOF
(agent:ensure-account)
(agent->archive "${archive}")
EOF
JAMI_LOG_FILE="$outputs" ./agent "$inputs"
grep AGENT "$outputs"
rm "$inputs"
rm "$outputs"
rm -rf "$tmp"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment