Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
set -euo pipefail
INSTALL_DIR="$HOME/.omni-ecosystem/omni-cli"
if [ -d "$INSTALL_DIR" ]; then
echo "omni-cli already exists at $INSTALL_DIR, pulling latest..."
git -C "$INSTALL_DIR" pull
else
mkdir -p "$(dirname "$INSTALL_DIR")"