1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00

home-manager: fix config file variable check (#3901)

This commit is contained in:
Stel Abrego 2023-04-21 02:40:20 -07:00 committed by GitHub
parent 5160039edc
commit 342fd40ccb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ function setConfigFile() {
'home.nix' "$HOME/.nixpkgs" "$hmConfigHome" >&2 'home.nix' "$HOME/.nixpkgs" "$hmConfigHome" >&2
fi fi
if [[ $configFile ]]; then if [[ -v configFile ]]; then
HOME_MANAGER_CONFIG="$(realpath "$configFile")" HOME_MANAGER_CONFIG="$(realpath "$configFile")"
else else
_i 'No configuration file found. Please create one at %s' \ _i 'No configuration file found. Please create one at %s' \