#!/usr/bin/env bash
set -euo pipefail

HOST_NAME="org.gdown.nativehost"
CHROME_DIR="$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts"
OUT_PATH="$CHROME_DIR/${HOST_NAME}.json"

if [[ -f "$OUT_PATH" ]]; then
  rm -f "$OUT_PATH"
  echo "removed: $OUT_PATH"
else
  echo "not found: $OUT_PATH"
fi
