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