1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-29 21:50:58 +01:00
nix/tests/push-to-store.sh
Eelco Dolstra 6e7bd2e0b0 Fix passing $OUT_PATHS to the post-build hook
Fixes #6446.

(cherry picked from commit 4a9623b129)
2022-04-28 12:05:50 +00:00

10 lines
191 B
Bash
Executable file

#!/bin/sh
set -x
set -e
[ -n "$OUT_PATHS" ]
[ -n "$DRV_PATH" ]
echo Pushing "$OUT_PATHS" to "$REMOTE_STORE"
printf "%s" "$DRV_PATH" | xargs nix copy --to "$REMOTE_STORE" --no-require-sigs