Less isn't installed if the packages are the ones failing

This commit is contained in:
David Heinemeier Hansson
2025-09-17 16:02:09 +02:00
parent 020a4659ec
commit fc3d1a4af5

View File

@@ -126,7 +126,11 @@ catch_errors() {
break
;;
"View full log")
less "$OMARCHY_INSTALL_LOG_FILE"
if command -v less &>/dev/null; then
less "$OMARCHY_INSTALL_LOG_FILE"
else
tail "$OMARCHY_INSTALL_LOG_FILE"
fi
;;
"Upload log for support")
omarchy-upload-install-log