diff --git a/dist/main/index.js b/dist/main/index.js index fc9d5291..74c76a00 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -7962,6 +7962,12 @@ async function registerPostBuildHook(cachixBin, daemonDir) { set -eu set -f # disable globbing + PUSH_FILTER="${pushFilter}" + + if [ -n "$PUSH_FILTER" ]; then + OUT_PATHS=$(echo "$OUT_PATHS" | grep -vEe "$PUSH_FILTER") + fi + exec ${cachixBin} daemon push \ --socket ${daemonDir}/daemon.sock \ $OUT_PATHS diff --git a/src/main.ts b/src/main.ts index 564db3c7..8ddc835a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -281,6 +281,12 @@ async function registerPostBuildHook(cachixBin: string, daemonDir: string) { set -eu set -f # disable globbing + PUSH_FILTER="${pushFilter}" + + if [ -n "$PUSH_FILTER" ]; then + OUT_PATHS=$(echo "$OUT_PATHS" | grep -vEe "$PUSH_FILTER") + fi + exec ${cachixBin} daemon push \ --socket ${daemonDir}/daemon.sock \ $OUT_PATHS