forked from altcloud/mkimage-profiles
docs: en_US fallback for index.html symlink
It's unfortunate but leaving "upstream" redirector index.html files without their final target is worse yet; hope this gets popravleno some day.
This commit is contained in:
parent
3c65c49817
commit
40080a18b7
@ -14,9 +14,9 @@ indexfile="$indexdir/index.html"
|
||||
[ -s "$indexfile" ] || nonfatal "$indexfile not found"
|
||||
|
||||
[ -n "$GLOBAL_LOCALE" ] ||
|
||||
echo "** warning: GLOBAL_LOCALE empty, maybe use/l10n" >&2
|
||||
echo "** warning: GLOBAL_LOCALE empty, fallback to en_US (use/l10n?)">&2
|
||||
|
||||
LANG="$GLOBAL_LOCALE" indexhtml-update
|
||||
LANG="${GLOBAL_LOCALE:-en_US}" indexhtml-update
|
||||
|
||||
# http://unix.stackexchange.com/questions/94185/convert-soft-to-hardlinks
|
||||
cp -aH "$indexdir" "$dest"
|
||||
|
Loading…
x
Reference in New Issue
Block a user