workaround for a gettext string starting with --.
Workaround found in Advanced Bash-Scripting Guide, localization section. "added a \0 (NULL) at the beginning of the sentence." Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
This commit is contained in:
parent
ba7687f58e
commit
73ee64d49f
@ -1187,7 +1187,7 @@ done
|
||||
if [ "$HOLDVER" = "1" -a "$FORCE_VER" != "" ]; then
|
||||
# The extra '--' is here to prevent gettext from thinking --holdver is
|
||||
# an option
|
||||
error "$(gettext -- "--holdver and --forcever cannot both be specified")"
|
||||
error "$(gettext "\\0--holdver and --forcever cannot both be specified" )"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user