small runshell optimisation
avoid some test -d for locale variables that are not set
This commit is contained in:
parent
9e12e4c419
commit
b91d97c3d2
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ if [ -z "${LOCPATH+set}" ] && [ -z "$GIT_ANNEX_PACKAGE_INSTALL" ]; then
|
||||||
"$LC_COLLATE" "$LC_MONETARY" "$LC_MESSAGES" "$LC_PAPER" \
|
"$LC_COLLATE" "$LC_MONETARY" "$LC_MESSAGES" "$LC_PAPER" \
|
||||||
"$LC_NAME" "$LC_ADDRESS" "$LC_TELEPHONE" "$LC_MEASUREMENT" \
|
"$LC_NAME" "$LC_ADDRESS" "$LC_TELEPHONE" "$LC_MEASUREMENT" \
|
||||||
"$LC_IDENTIFICATION" "$LC_ALL"; do
|
"$LC_IDENTIFICATION" "$LC_ALL"; do
|
||||||
if [ "$localeenv" != "$lastlocaleenv" ]; then
|
if [ -n "$localeenv" ] && [ "$localeenv" != "$lastlocaleenv" ]; then
|
||||||
lastlocaleenv="$localeenv"
|
lastlocaleenv="$localeenv"
|
||||||
if [ ! -d "$LOCPATH/$localeenv" ]; then
|
if [ ! -d "$LOCPATH/$localeenv" ]; then
|
||||||
if [ "${localeenv##[!.]*.}" = "utf8" ] || [ "${localeenv##[!.]*.}" = "UTF-8" ]; then
|
if [ "${localeenv##[!.]*.}" = "utf8" ] || [ "${localeenv##[!.]*.}" = "UTF-8" ]; then
|
||||||
|
|
Loading…
Reference in a new issue