Skip to content

Commit 9afe1f9

Browse files
committed
nixos-anywhere: make install script sh compatible
This actually doesn't matter on NixOS. However I had to install NixOS from an ubuntu, by faking a NixOS installer, so this was quite handy.
1 parent 7367342 commit 9afe1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ if [ ! -z ${NIXOS_NO_CHECK+0} ]; then
745745
export NIXOS_NO_CHECK
746746
fi
747747
nixos-install --no-root-passwd --no-channel-copy --system "$nixosSystem"
748-
if [[ ${phases[reboot]} == 1 ]]; then
748+
if [ ${phases[reboot]} == 1 ]; then
749749
if command -v zpool >/dev/null && [ "\$(zpool list)" != "no pools available" ]; then
750750
# we always want to export the zfs pools so people can boot from it without force import
751751
umount -Rv /mnt/

0 commit comments

Comments
 (0)