From a6ca3d28bbbdc2c07c71d75bd8944621aaefbc86 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sat, 3 Feb 2024 09:31:36 +0900 Subject: [PATCH] Update installs cript --- docs/install.sh | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/install.sh b/docs/install.sh index bc17cef5..1cd0fa0d 100755 --- a/docs/install.sh +++ b/docs/install.sh @@ -10,10 +10,20 @@ if [ "$(id -u)" -eq 0 ]; then exit 1 fi -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 +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