set statusdir only after confirmed directory setup

svn path=/trunk/; revision=31291
This commit is contained in:
2015-06-01 00:18:53 +00:00
parent 4e8b14d681
commit c12aca6b6c
2 changed files with 1 additions and 1 deletions

View File

@@ -66,7 +66,6 @@ olang="${olang:-en}"
tree="${tree:-$basedir}"
readonly tree="${tree:+$(realpath "$tree")}"
readonly basedir="${basedir:+$(realpath "$basedir")}"
readonly statusdir="${statusdir:+$(realpath "$statusdir")}"
readonly target="${target:+$(realpath "$target")}"
readonly domain="${domain:-www.fsfe.org}"
readonly command

View File

@@ -30,6 +30,7 @@ if [ -n "$statusdir" ]; then
"either select a status directory that exists and is writable,\n" \
"or run the build script without output to a status directory"
fi
readonly statusdir="${statusdir:+$(realpath "$statusdir")}"
case "$command" in
build_into) build_into ;;