home-manager: simplify error messages slightly
This commit is contained in:
parent
a50511b63f
commit
775294baf4
3 changed files with 8 additions and 8 deletions
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2026-01-20 13:03+0100\n"
|
||||
"POT-Creation-Date: 2026-01-20 21:51+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ function checkUsername() {
|
|||
local expectedUser="$1"
|
||||
|
||||
if [[ "$USER" != "$expectedUser" ]]; then
|
||||
_iError 'Environment variable USER is set to "%s" but we expect "%s"' "$USER" "$expectedUser"
|
||||
_iError 'USER is set to "%s" but we expect "%s"' "$USER" "$expectedUser"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
|
@ -112,7 +112,7 @@ function checkHomeDirectory() {
|
|||
local expectedHome="$1"
|
||||
|
||||
if ! [[ $HOME -ef $expectedHome ]]; then
|
||||
_iError 'Environment variable HOME is set to "%s" but we expect "%s"' "$HOME" "$expectedHome"
|
||||
_iError 'HOME is set to "%s" but we expect "%s"' "$HOME" "$expectedHome"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
|
@ -123,7 +123,7 @@ function checkUid() {
|
|||
actualUid="$(id -u)"
|
||||
|
||||
if [[ "$actualUid" != "$expectedUid" ]]; then
|
||||
_iError 'Environment variable UID is "%s" but we expect "%s"' "$actualUid" "$expectedUid"
|
||||
_iError 'UID is "%s" but we expect "%s"' "$actualUid" "$expectedUid"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Home Manager Modules\n"
|
||||
"Report-Msgid-Bugs-To: https://github.com/nix-community/home-manager/issues\n"
|
||||
"POT-Creation-Date: 2026-01-20 13:03+0100\n"
|
||||
"POT-Creation-Date: 2026-01-20 21:51+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
@ -66,15 +66,15 @@ msgid "Could not find suitable profile directory, tried %s and %s"
|
|||
msgstr ""
|
||||
|
||||
#: modules/lib-bash/activation-init.sh:106
|
||||
msgid "Environment variable USER is set to \"%s\" but we expect \"%s\""
|
||||
msgid "USER is set to \"%s\" but we expect \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#: modules/lib-bash/activation-init.sh:115
|
||||
msgid "Environment variable HOME is set to \"%s\" but we expect \"%s\""
|
||||
msgid "HOME is set to \"%s\" but we expect \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#: modules/lib-bash/activation-init.sh:126
|
||||
msgid "Environment variable UID is \"%s\" but we expect \"%s\""
|
||||
msgid "UID is \"%s\" but we expect \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#: modules/lib-bash/activation-init.sh:143
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue