mirror of
https://github.com/PurpleComputing/mdmscripts.git
synced 2026-02-03 06:03:26 +00:00
19 lines
507 B
Bash
19 lines
507 B
Bash
#!/bin/bash
|
|
|
|
# URL of the .pkg file to download
|
|
downloadUrl="https://store.prpl.uk/DEPNotify.pkg"
|
|
|
|
# Destination directory to store the downloaded .pkg file
|
|
destinationDirectory="/tmp/pkg-install"
|
|
|
|
# Create the destination directory if it doesn't exist
|
|
mkdir -p "$destinationDirectory"
|
|
|
|
# Download the .pkg file
|
|
curl -o "$destinationDirectory/DEPNotify.pkg" "$downloadUrl"
|
|
|
|
# Install the .pkg file
|
|
installer -pkg "$destinationDirectory/DEPNotify.pkg" -target /
|
|
|
|
rm -rf "$destinationDirectory/DEPNotify.pkg"
|