diff --git a/dist/main/index.js b/dist/main/index.js index 633cacba..652f280b 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -7973,7 +7973,7 @@ async function registerPostBuildHook(cachixBin, daemonDir) { done | xargs } - if [[ -n $PUSH_FILTER ]]; then + if [ -n "$PUSH_FILTER" ]; then OUT_PATHS=$(filterPaths $PUSH_FILTER "$OUT_PATHS") fi diff --git a/dist/main/push-paths.sh b/dist/main/push-paths.sh index 977c8087..cecdd16b 100755 --- a/dist/main/push-paths.sh +++ b/dist/main/push-paths.sh @@ -12,10 +12,10 @@ function filterPaths { done | xargs } -if [[ -z $pathsToPush ]]; then +if [ -z "$pathsToPush" ]; then pathsToPush=$(comm -13 <(sort /tmp/store-path-pre-build) <("$(dirname "$0")"/list-nix-store.sh)) - if [[ -n $pushFilter ]]; then + if [ -n "$pushFilter" ]; then pathsToPush=$(filterPaths $pushFilter "$pathsToPush") fi fi diff --git a/src/main.ts b/src/main.ts index 127f39ab..82598840 100644 --- a/src/main.ts +++ b/src/main.ts @@ -292,7 +292,7 @@ async function registerPostBuildHook(cachixBin: string, daemonDir: string) { done | xargs } - if [[ -n $PUSH_FILTER ]]; then + if [ -n "$PUSH_FILTER" ]; then OUT_PATHS=$(filterPaths $PUSH_FILTER "$OUT_PATHS") fi