Fix when script fails
This commit is contained in:
@@ -92,7 +92,10 @@
|
|||||||
"/var/log"
|
"/var/log"
|
||||||
"/var/lib/bluetooth"
|
"/var/lib/bluetooth"
|
||||||
"/var/lib/networkmanager"
|
"/var/lib/networkmanager"
|
||||||
|
"/var/lib/nixos"
|
||||||
"/etc/ssh"
|
"/etc/ssh"
|
||||||
|
"/var/lib/systemd/coredump"
|
||||||
|
"/etc/NetworkManager/system-connections"
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
"/etc/machine-id"
|
"/etc/machine-id"
|
||||||
@@ -203,7 +206,7 @@
|
|||||||
else
|
else
|
||||||
echo "Local repository found so cloning from there"
|
echo "Local repository found so cloning from there"
|
||||||
${pkgs.git}/bin/git clone -b main "$DOTFILES_GIT_DIR" "$TEMP_DIR"
|
${pkgs.git}/bin/git clone -b main "$DOTFILES_GIT_DIR" "$TEMP_DIR"
|
||||||
${pkgs.git}/bin/git --git-dir="$DOTFILES_GIT_DIR" --work-tree="$TEMP_DIR" pull --rebase
|
${pkgs.git}/bin/git --git-dir="$DOTFILES_GIT_DIR" --work-tree="$TEMP_DIR" pull --rebase || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Copying dot files to home"
|
echo "Copying dot files to home"
|
||||||
@@ -212,7 +215,7 @@
|
|||||||
NVIM_DIR="$HOME/.config/nvim"
|
NVIM_DIR="$HOME/.config/nvim"
|
||||||
echo "Neovim config not initialised so initialising from remote"
|
echo "Neovim config not initialised so initialising from remote"
|
||||||
${pkgs.git}/bin/git --git-dir="$DOTFILES_GIT_DIR" --work-tree="$HOME" submodule set-url ".config/nvim" https://labs.scarif.space/chris/nvim.git
|
${pkgs.git}/bin/git --git-dir="$DOTFILES_GIT_DIR" --work-tree="$HOME" submodule set-url ".config/nvim" https://labs.scarif.space/chris/nvim.git
|
||||||
${pkgs.git}/bin/git --git-dir="$DOTFILES_GIT_DIR" --work-tree="$HOME" submodule update --init
|
${pkgs.git}/bin/git --git-dir="$DOTFILES_GIT_DIR" --work-tree="$HOME" submodule update --init || true
|
||||||
${pkgs.git}/bin/git --git-dir="$DOTFILES_GIT_DIR" --work-tree="$HOME" submodule set-url ".config/nvim" git@labs.scarif.space:chris/nvim.git
|
${pkgs.git}/bin/git --git-dir="$DOTFILES_GIT_DIR" --work-tree="$HOME" submodule set-url ".config/nvim" git@labs.scarif.space:chris/nvim.git
|
||||||
|
|
||||||
cd "$HOME"
|
cd "$HOME"
|
||||||
|
|||||||
Reference in New Issue
Block a user