Fix syntax error in start

This commit is contained in:
Henrik Jonsson 2017-01-27 05:15:20 +01:00
parent 8105b400b3
commit 24d11a1793

2
start
View File

@ -6,7 +6,7 @@ set -euo pipefail
TORRC_PATH=${TORRC_PATH:-""} TORRC_PATH=${TORRC_PATH:-""}
[[ "$TORRC_PATH" ]] && echo "$(date) [ $(basename $0) ] Using torrc file from '$TORRC_PATH'.." [[ "$TORRC_PATH" ]] && echo "$(date) [ $(basename $0) ] Using torrc file from '$TORRC_PATH'.."
[[ -e "$TORRC_PATH" ]] { [[ -e "$TORRC_PATH" ]] || {
echo "$(date) [ $(basename $0) ] FATAL: No such file '$TORRC_PATH'." >&1 echo "$(date) [ $(basename $0) ] FATAL: No such file '$TORRC_PATH'." >&1
exit 1 exit 1
} }