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