#!/usr/bin/env bash

module_description() { printf "Install Obsidian\n"; }
module_required() { return 1; }
module_should_skip() { return 1; }
module_prereqs() { return 0; }

module_main() {
  log_info "Installing Obsidian..."
  if pacman -Si obsidian >/dev/null 2>&1; then
    install_pacman obsidian
  elif pacman -Si obsidian-bin >/dev/null 2>&1; then
    install_pacman obsidian-bin
  else
    install_aur obsidian-bin
  fi
}
