feat: add some scripts
This commit is contained in:
parent
39a98152ba
commit
f8f2bd75b1
5 changed files with 320 additions and 0 deletions
|
|
@ -66,6 +66,12 @@ NIX_EXIT_STATUS=$?
|
|||
# Check the exit status
|
||||
if [ "$NIX_EXIT_STATUS" -eq 0 ]; then
|
||||
echo "INFO: Dry-build for host '$HOSTNAME' completed successfully."
|
||||
# Extract and display warnings even on success
|
||||
WARNINGS=$(echo "$NIX_OUTPUT_ERR" | grep -E "^(warning:|trace:)" || true)
|
||||
if [ -n "$WARNINGS" ]; then
|
||||
echo "WARNINGS from nix-instantiate:"
|
||||
echo "$WARNINGS"
|
||||
fi
|
||||
if [ "$VERBOSE" = true ]; then
|
||||
echo "Output from nix-instantiate:"
|
||||
echo "$NIX_OUTPUT_ERR"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue