PUY6ROHB3KKRTLPQ5JKLCPJLJCPN4GP3MBHAZMZQQLO2UZ6LKAQAC for attempts in 1..($try_attempts + 1) {try {NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_argsbreak} catch { |e|if $attempts < $try_attempts {print-notify $"First attempt failed, retrying... (attempt ($attempts) of ($try_attempts))"} else {print-notify $"Error: Rebuild failed after ($try_attempts) attempts, run manually in a terminal."exit 1}}}
NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_args
for attempts in 1..($try_attempts + 1) {try {sudo NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_argsbreak} catch { |e|if $attempts < $try_attempts {print-notify $"First attempt failed, retrying... (attempt ($attempts) of ($try_attempts))"} else {print-notify $"Error: Rebuild failed after ($try_attempts) attempts, run manually in a terminal."exit 1}}}
sudo NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh $command ...$final_args