rebuild.sh: update no-mistakes on every rebuild
This commit is contained in:
1 parent
baae0d960c
commit
b4120aaf88
1 file changed
+18
+18
@@ -31,6 +31,24 @@ else
|
||||
echo "==> OpenCode 1.x already installed: $(${OPENCODE_BIN} --version)"
|
||||
fi
|
||||
|
||||
echo "==> Updating no-mistakes..."
|
||||
NO_MISTAKES_BIN="$HOME/.no-mistakes/bin/no-mistakes"
|
||||
if [ -x "$NO_MISTAKES_BIN" ]; then
|
||||
if "$NO_MISTAKES_BIN" update 2>&1; then
|
||||
echo "==> no-mistakes update complete"
|
||||
else
|
||||
echo "==> WARNING: no-mistakes update failed. Skipping."
|
||||
fi
|
||||
elif command -v no-mistakes >/dev/null 2>&1; then
|
||||
if no-mistakes update 2>&1; then
|
||||
echo "==> no-mistakes update complete"
|
||||
else
|
||||
echo "==> WARNING: no-mistakes update failed. Skipping."
|
||||
fi
|
||||
else
|
||||
echo "==> WARNING: no-mistakes not found. Skipping update."
|
||||
fi
|
||||
|
||||
stamp="$(date +%Y%m%d-%H%M%S)"
|
||||
# Paths home-manager manages via home.file (regular files become out-of-store symlinks).
|
||||
managed=(
|
||||
|
||||
Reference in new issue
Block a user