mirror of
https://github.com/nix-community/home-manager
synced 2024-12-25 03:09:47 +01:00
home-manager: avoid stray error message
Failure to create the global profiles directory is not actually an error since we can recover. Therefore, avoid printing the mkdir error message.
This commit is contained in:
parent
bcc417b80f
commit
1b8bf5c327
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ function setupVars() {
|
||||||
# In the future we may perform a one-shot migration to the new location.
|
# In the future we may perform a one-shot migration to the new location.
|
||||||
#
|
#
|
||||||
# shellcheck disable=2174
|
# shellcheck disable=2174
|
||||||
if [[ -d "$globalProfilesDir" ]] || mkdir -m 0755 -p "$globalProfilesDir"; then
|
if [[ -d "$globalProfilesDir" ]] || mkdir -m 0755 -p "$globalProfilesDir" 2>/dev/null; then
|
||||||
declare -r hmProfilesDir="$globalProfilesDir"
|
declare -r hmProfilesDir="$globalProfilesDir"
|
||||||
else
|
else
|
||||||
declare -r hmProfilesDir="$hmStateDir/profiles"
|
declare -r hmProfilesDir="$hmStateDir/profiles"
|
||||||
|
|
Loading…
Reference in a new issue