Update installs cript
This commit is contained in:
parent
4c5cbefc9e
commit
a6ca3d28bb
1 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue