fish remove hashing

This commit is contained in:
ark-lamp-umbrella 2024-04-21 22:44:26 -07:00
parent d8a88625ef
commit 2a881249d0
Signed by: ark-lamp-umbrella
GPG Key ID: 15E48F7B97025652
2 changed files with 27 additions and 2 deletions

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1713537308,
"narHash": "sha256-XtTSSIB2DA6tOv+l0FhvfDMiyCmhoRbNB+0SeInZkbk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5c24cf2f0a12ad855f444c30b2421d044120c66f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View File

@ -21,7 +21,6 @@ if fish_is_root_user
else
set hash1 "$(cat temp/directorylisthashed.txt)"
set hash2 "$(cat temp/directorylisthashedprevious.txt)"
if [ "$hash1" != "$hash2" ]
set rpass "$(logprinti "root password" "p")"
if [ "$rpass" = "" ]
logprintn "EXIT" "red" "empty root password"
@ -37,7 +36,6 @@ else
sudo nixos-rebuild --flake $(pwd) switch
logprintn "INFO" "blue" "nixos-rebuild completed"
end
end
set gitpush "$(logprinti "update git (Y/n)" "c")"
if [ "$gitpush" = "" ]
set gitpush "y"