agent: Remove junks

Change-Id: I09876059293d18e25c34e755deafba8d224dc740
This commit is contained in:
Olivier Dion
2021-10-12 12:32:57 -04:00
committed by Adrien Béraud
parent 448b4e1e2b
commit 26f04d0a5c

View File

@ -1,25 +0,0 @@
#!/bin/sh
tmp=$(mktemp --directory)
export XDG_CONFIG_HOME=$tmp
export XDG_CACHE_HOME=$tmp
export XDG_DATA_HOME=$tmp
archive=$1
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"