Fix auto-update scripts (again, hopefully)
This commit is contained in:
parent
3a044e901a
commit
ec3699ffc4
|
@ -41,6 +41,7 @@
|
||||||
config.nix.package.out
|
config.nix.package.out
|
||||||
nh
|
nh
|
||||||
openssh
|
openssh
|
||||||
|
sudo
|
||||||
];
|
];
|
||||||
script = ''
|
script = ''
|
||||||
cd ${config.users.users.aires.home}/Development/nix-configuration
|
cd ${config.users.users.aires.home}/Development/nix-configuration
|
||||||
|
@ -49,7 +50,7 @@
|
||||||
sudo -u aires git diff --exit-code main origin/main
|
sudo -u aires git diff --exit-code main origin/main
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
sudo -u aires git pull --recurse-submodules
|
sudo -u aires git pull --recurse-submodules
|
||||||
nh os search
|
nh os switch
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue