Merge branch 'lc/shell-default-value-noexpand'
Fix unnecessarily waste in the idiomatic use of ': ${VAR=default}' to set the default value, without enclosing it in double quotes. * lc/shell-default-value-noexpand: sh-setup: enclose setting of ${VAR=default} in double-quotes
This commit is contained in:
commit
5854b36c4a
@ -160,8 +160,8 @@ git_pager() {
|
|||||||
else
|
else
|
||||||
GIT_PAGER=cat
|
GIT_PAGER=cat
|
||||||
fi
|
fi
|
||||||
: ${LESS=-FRX}
|
: "${LESS=-FRX}"
|
||||||
: ${LV=-c}
|
: "${LV=-c}"
|
||||||
export LESS LV
|
export LESS LV
|
||||||
|
|
||||||
eval "$GIT_PAGER" '"$@"'
|
eval "$GIT_PAGER" '"$@"'
|
||||||
@ -344,7 +344,7 @@ git_dir_init () {
|
|||||||
echo >&2 "Unable to determine absolute path of git directory"
|
echo >&2 "Unable to determine absolute path of git directory"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
: ${GIT_OBJECT_DIRECTORY="$(git rev-parse --git-path objects)"}
|
: "${GIT_OBJECT_DIRECTORY="$(git rev-parse --git-path objects)"}"
|
||||||
}
|
}
|
||||||
|
|
||||||
if test -z "$NONGIT_OK"
|
if test -z "$NONGIT_OK"
|
||||||
|
Loading…
Reference in New Issue
Block a user