add check for shodan to not switch but instead just boot rebuild (and added just boot command), and added a check to see if pre-commit file is empty before adding the test hook for this repo
This commit is contained in:
parent
33f0eec366
commit
1114f237f6
2 changed files with 21 additions and 2 deletions
|
@ -18,7 +18,11 @@ writeShellApplication
|
|||
git clone https://codeberg.org/Lillian-Violet/NixOS-Config.git ./rebuild
|
||||
pushd ./rebuild > /dev/null
|
||||
echo "NixOS Rebuilding..."
|
||||
just build
|
||||
if ["''$HOSTNAME" = shodan]; then
|
||||
just boot
|
||||
else
|
||||
just build
|
||||
fi
|
||||
popd > /dev/null
|
||||
echo "Cleaning up repository in '/tmp/rebuild'..."
|
||||
rm -rf ./rebuild
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue