test if nix available before uploading
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
set -eu
|
||||
set -f
|
||||
|
||||
if ! nix; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
export IFS=' '
|
||||
echo "Uploading paths" $OUT_PATHS
|
||||
exec nix copy --to "ssh://localhost:5000" $OUT_PATHS
|
||||
|
||||
Reference in New Issue
Block a user