Check arch in justfile

This commit is contained in:
Dave Gallant
2024-03-15 08:07:58 -04:00
parent 655053a6b3
commit 0b552baa8b
3 changed files with 10 additions and 37 deletions

View File

@@ -2,18 +2,9 @@
set -euo pipefail
arch=$(uname -s)
git pull
update_msg=$(nix flake update 2>&1 | grep -v 'warning:')
if [[ $arch == "Linux" ]]; then
just build-linux
elif [[ $arch == "Darwin" ]]; then
just build-mac
else
echo "Unsupported OS: $arch"
exit 1
fi
just rebuild
git add .
git commit -S -m "nix flake update: $(TZ=UTC date '+%Y-%m-%d %H:%M:%S %Z')