mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
home-manager: fix config file variable check (#3901)
This commit is contained in:
@@ -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' \
|
||||
|
||||
Reference in New Issue
Block a user