Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Apr 25, 2024
1 parent 4e47c29 commit 36a24d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions dist/main/push-paths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36a24d1

Please # to comment.