mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
home-manager: fix config file variable check (#3901)
This commit is contained in:
parent
5160039edc
commit
342fd40ccb
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ function setConfigFile() {
|
|||
'home.nix' "$HOME/.nixpkgs" "$hmConfigHome" >&2
|
||||
fi
|
||||
|
||||
if [[ $configFile ]]; then
|
||||
if [[ -v configFile ]]; then
|
||||
HOME_MANAGER_CONFIG="$(realpath "$configFile")"
|
||||
else
|
||||
_i 'No configuration file found. Please create one at %s' \
|
||||
|
|
Loading…
Reference in a new issue