Skip to content

Commit d96a188

Browse files
🩹 fix(update): Do not error if bun is missing.
1 parent 82fab30 commit d96a188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.bin/update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ if $update ; then
314314
echo '+ Update dotfiles'
315315
sh "$DOTFILES"/bootstrap/dotfiles-update -f || _exit "$?"
316316

317-
if [ -d "${BUN_PACKAGES}" ] ; then
317+
if which bun 2>/dev/null 1>&2 && [ -d "${BUN_PACKAGES}" ] ; then
318318
echo ' * updating bun packages @ '"${BUN_PACKAGES}"
319319
_do bun install --cwd "${HOME}/${BUN_PACKAGES}" --frozen-lockfile --production
320320
fi

0 commit comments

Comments
 (0)