Update installs cript

This commit is contained in:
iFargle 2024-02-03 09:31:36 +09:00
parent 4c5cbefc9e
commit a6ca3d28bb

View file

@ -10,11 +10,21 @@ if [ "$(id -u)" -eq 0 ]; then
exit 1
fi
read -p "Include wallpapers? [y/N]" -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
if [ ! -d "/tmp/nixos/git/.git" ]; then
git clone --recursive https://git.sysctl.io/albert/nix "/tmp/nixos/git"
else
git -C "/tmp/nixos/git" pull
fi
else
if [ ! -d "/tmp/nixos/git/.git" ]; then
git clone https://git.sysctl.io/albert/nix "/tmp/nixos/git"
else
git -C "/tmp/nixos/git" pull
fi
fi
pushd /tmp/nixos/git