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>
11 lines
187 B
Bash
Executable File
11 lines
187 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. "${TEST_INIT:-./test-init.sh}"
|
|
data=$(mktemp -d)
|
|
|
|
"$CALCURSE" -a -D "$data"
|
|
[ -f "$data/apts" ] && [ -f "$data/conf" ] && failed=0 || failed=1
|
|
|
|
rm -rf "$data"
|
|
exit "$failed"
|