build: Fix make distcheck problem.
* tests/start-stop-agent: Use -f with rm. Also use cat instead of cp. -- Also shorted some lines.
This commit is contained in:
parent
8fe1546282
commit
aaf448b1e8
@ -36,10 +36,10 @@ for F in gpg.conf gpgsm.conf
|
|||||||
do
|
do
|
||||||
if test -f "$GNUPGHOME/$F"
|
if test -f "$GNUPGHOME/$F"
|
||||||
then
|
then
|
||||||
mv "$GNUPGHOME/$F" "$GNUPGHOME/$F~"
|
cat "$GNUPGHOME/$F" > "$GNUPGHOME/$F~"
|
||||||
sed -e "s#^agent-program.*#agent-program ${GPG_AGENT}|--debug-quick-random#" \
|
sed -e "s#^agent-program.*#agent-program ${GPG_AGENT}|--debug-quick-random#" \
|
||||||
>"$GNUPGHOME/$F" <"$GNUPGHOME/$F~"
|
>"$GNUPGHOME/$F" <"$GNUPGHOME/$F~"
|
||||||
rm "$GNUPGHOME/$F~"
|
rm -f "$GNUPGHOME/$F~"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user