Skip to content

Commit

Permalink
fix(nix): do not upload to cache when running on cache
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Dec 21, 2023
1 parent 9842333 commit e2cb05d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cachixe.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
let
script = writeText "upload-to-cache.sh" ''
#!/bin/sh
if [ "$(hostname)" = "cachixe" ]; then
exit 0
fi
set -eu
set -f # disable globbing
export IFS=' '
Expand Down

0 comments on commit e2cb05d

Please sign in to comment.