#!/bin/bash
#  It is recommended to test the script on a local machine for its purpose and effects.
#  ManageEngine Endpoint Central will not be responsible for any
#  damage/loss to the data/setup based on the behavior of the script
#  Description - Script to copy a file from web url to a local path in Mac machine
#  Script arguments - "Destination path" "Web url"
#  Example - "/Users/Shared/18.0/LicenseCert.fmcert" "https://shefa-public.s3.amazonaws.com/LicenseCert.fmcert"
#  Example - "/Applications/logo.png" "https://image.com/logo.png"
#  Configuration  - COMPUTER/USER

if [ $# == '2' ]; then

# command to download
curl -o "$1" "$2"

else
echo "Invalid Arguments - Please refer examples of the script"
exit 1
fi
