Skip to content

Commit b1534fb

Browse files
committed
add warning to scripts/update-flake.sh
1 parent 1cae989 commit b1534fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/update-flake.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
set -eu
55

6+
# CI only checks the hash on linux/amd64. If you run it in any other os/arch
7+
# then the hash won't match.
8+
if [[ $(go env GOARCH) != "amd64" ]] || [[ $(go env GOOS) != "linux" ]]; then
9+
echo "WARNING: This script should only be run on a linux/amd64 machine!"
10+
fi
11+
612
cd "$(dirname "${BASH_SOURCE[0]}")/.."
713

814
OUT=$(mktemp -d -t nar-hash-XXXXXX)

0 commit comments

Comments
 (0)