diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-08-18 02:53:26 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-08-18 02:53:26 +0200 |
commit | 95ceb640e4de44994c265155464f81e1893dd394 (patch) | |
tree | d500f8130892f71c055c16b8cf2dbda771444bf2 /update.sh | |
parent | Update stuff (diff) | |
download | Rory-Open-Architecture-95ceb640e4de44994c265155464f81e1893dd394.tar.xz |
Refactor
Diffstat (limited to '')
-rwxr-xr-x | update.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/update.sh b/update.sh index cbec982..6ce5622 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,12 @@ #!/usr/bin/env sh + +if [ -d "nixpkgs" ]; then + cd nixpkgs + git remote add upstream https://github.com/NixOS/nixpkgs || git remote set-url upstream https://github.com/NixOS/nixpkgs + git fetch --all -v + git rebase upstream/nixos-unstable -v + cd .. +fi + nix flake update ./build.sh / $HOSTNAME \ No newline at end of file |