File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -169,16 +169,15 @@ if [[ -n ${flake-} ]]; then
169
169
flakeAttr=" ${BASH_REMATCH[2]} "
170
170
fi
171
171
if [[ -z ${flakeAttr-} ]]; then
172
- echo " Please specify the name of the NixOS configuration to be installed, as a URI fragment in the flake-uri."
173
- echo ' For example, to use the output nixosConfigurations.foo from the flake.nix, append "#foo" to the flake-uri.'
172
+ echo " Please specify the name of the NixOS configuration to be installed, as a URI fragment in the flake-uri." >&2
173
+ echo ' For example, to use the output nixosConfigurations.foo from the flake.nix, append "#foo" to the flake-uri.' >&2
174
174
exit 1
175
175
fi
176
176
disko_script=$( nix_build " ${flake} #nixosConfigurations.${flakeAttr} .config.system.build.disko" )
177
177
nixos_system=$( nix_build " ${flake} #nixosConfigurations.${flakeAttr} .config.system.build.toplevel" )
178
178
elif [[ -n ${disko_script-} ]] && [[ -n ${nixos_system-} ]]; then
179
179
if [[ ! -e ${disko_script} ]] || [[ ! -e ${nixos_system} ]]; then
180
- echo " ${disko_script} and ${nixos_system} must be existing store-paths"
181
- exit 1
180
+ abort " ${disko_script} and ${nixos_system} must be existing store-paths"
182
181
fi
183
182
:
184
183
else
You can’t perform that action at this time.
0 commit comments