From 165400b69e30665fe25b342027c7653809a56615 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 7 Nov 2020 21:57:54 -0600 Subject: [PATCH] Fix if statements --- bin/init-dotfiles | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/init-dotfiles b/bin/init-dotfiles index 4ccd4bc..bce59cd 100755 --- a/bin/init-dotfiles +++ b/bin/init-dotfiles @@ -67,20 +67,20 @@ setup_dotfiles() { } distro_specific_root_setup() { - if test $is_nixos -eq 1 then + if test $is_nixos -eq 1; then symlink_nixos "$root_home$dotfiles/env/nix/" add_unstable_channel nixos-rebuild switch - elif test $is_arch_linux -eq 1 + elif test $is_arch_linux -eq 1; then # TODO: install any necessary packages for remaining setup portion fi } distro_specific_user_setup() { - if test $is_nixos -eq 1 then + if test $is_nixos -eq 1; then FUNC=$(declare -f symlink_nixos) sudo sh -c "$FUNC; symlink_nixos \"$daniel_home$dotfiles/env/nix/\"" - elif test $is_arch_linux -eq 1 + elif test $is_arch_linux -eq 1; then # TODO: setup all the things fi }