Ensure that calcurse uses the right data and configuration directories depending on the conditions. Helped-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
12 lines
224 B
Bash
Executable File
12 lines
224 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_INIT:-./test-init.sh}"
|
|
data=$(mktemp -d)
|
|
conf=$(mktemp -d)
|
|
|
|
"$CALCURSE" -a -D "$data" -C "$conf"
|
|
[ -f "$data/apts" ] && [ -f "$conf/conf" ] && failed=0 || failed=1
|
|
|
|
rm -rf "$data" "$conf"
|
|
exit "$failed"
|