Commit c8134674 authored by anonym's avatar anonym
Browse files

Fix possibly unset variable vs `set -u`.

parent 365bc92a
......@@ -25,7 +25,7 @@ intltool_update_po () {
[ -f ${locale}.po ] || continue
[ -f ${locale}.po.new ] || continue
if [ "${FORCE}" = yes ]; then
if [ "${FORCE:-}" = yes ]; then
echo "Force-updating '${locale}.po'."
mv ${locale}.po.new ${locale}.po
elif diff_without_pot_creation_date -q "${locale}.po" "${locale}.po.new"; then
......
......@@ -101,7 +101,7 @@ intltool_update_pot () {
intltool-update --pot --gettext-package=tails
normalize_pot tails.pot tails.pot.orig
if [ "${FORCE}" = yes ]; then
if [ "${FORCE:-}" = yes ]; then
echo "Force-updating 'tails.pot'."
rm tails.pot.orig
elif diff_without_pot_creation_date_and_comments -q tails.pot.orig tails.pot; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment