#!/bin/bash

# Define the destination path
destination="/Applications/Firefox.app/Contents/Resources/distribution"

# Check if the directory exists, and create it if not
if [ ! -d "$destination" ]; then
    sudo mkdir -p "$destination"
    sudo chown -R $(whoami):staff "$destination"
fi

# Define the URL and output path
url="https://static.helpjuice.com/helpjuice_production/uploads/upload/image/7298/5160464/policies.json"
outputPath="$destination/policies.json"

# Download the policies.json file
curl -o "$outputPath" "$url"