3JRUTC653DE7TT2LWTTXOG4YT6ZGVBS67T4Y67D4HHVDMRSQ33KQC 4NRVIEMX33UUJASFFO4JXHNPN3EY3VB7K2FZXJVQGZMCAKEMXGYQC X2NWQEKELMFLEPY7SIM5YJKCE23WB3DV7OF34M5S3YP2R6TJ4EWAC 5G7WRBMWKG6DMCOHE6WQHTYZACUHO2UPBZRWN72CFH7P45NN5E7QC KYPDLOMFTH6IETNNZ7FS7HYAXPAGST2ROBO4ENGR4UYSG3PQNBXQC 4DJCBLW3CFDQPY3CBDTZAE7URHA4QP2F6XGVOKHNM3SI5O55WU2AC QRPPLHLL6YZU3Z35JNJFXHMBY3BX4THHN4AMWDFCUSFHYAHWTRHAC def print-notify [message: string] {print $"[Rebuild]: ($message)"if (which dunstify | is-not-empty) {if ($message | str downcase | str contains "error") {^dunstify --appname="Rebuild" --urgency=critical --timeout=30000 "Error" $"($message)"} else {^dunstify --appname="Rebuild" "Status" $"($message)"}}}
host: string = "" # The host to build (maybe useless will see)--remote # Deploy to remote host using --target-host--rollback # Rollback...arguments # Extra arguments to pass to rebuild commands
host: string = "" # The host to build.--remote # Deploy to remote host using --target-host.--rollback # Rollback....arguments # Extra arguments to pass to rebuild commands.
sudo NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_args
try {sudo NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_args} catch { |e|print-notify "An error occurred during the rebuild. Run `rebuild` manually."}