fix: linux-devshell for ubuntu

This commit is contained in:
2026-05-01 23:11:23 +00:00
parent 61861ff170
commit c041f2e88d
2 changed files with 106 additions and 1 deletions

View File

@@ -27,7 +27,13 @@ install_nix() {
log_info "Nix not found. Installing via nixos.org/nix/install --no-daemon..."
if ! command -v curl >/dev/null 2>&1; then
log_error "curl is required. Install it with: sudo pacman -S curl"
if command -v apt >/dev/null 2>&1; then
log_error "curl is required. Install it with: sudo apt update && sudo apt install -y curl"
elif command -v pacman >/dev/null 2>&1; then
log_error "curl is required. Install it with: sudo pacman -S curl"
else
log_error "curl is required. Install it with your system package manager."
fi
exit 1
fi