Skip to content

Instantly share code, notes, and snippets.

@jworkmanjc
Last active February 16, 2021 23:09
Show Gist options
  • Save jworkmanjc/5ee5dae9f769303c196055b8fa993da8 to your computer and use it in GitHub Desktop.
Save jworkmanjc/5ee5dae9f769303c196055b8fa993da8 to your computer and use it in GitHub Desktop.
Invoke Mobile to Local for current user
#!/bin/bash
################################################################################
# This script will the latest version of Mobile to Local and prompt the current
# user to enter their password. This script can be run from the JumpCloud
# command console but will wait for user input before before marking the script
# complete in the results window.
# Refer to https://github.com/BIG-RAT/mobile_to_local for tool usage
################################################################################
# Download Latest MobileToLocal
curl -L --silent --output /tmp/mobile2local.zip "https://github.com/BIG-RAT/mobile_to_local/releases/latest/download/Mobile.to.Local.zip" >/dev/null
# Unzip
unzip /tmp/mobile2local.zip -d /tmp
# Run
/tmp/Mobile\ to\ Local.app/Contents/MacOS/Mobile\ to\ Local -userType admin -unbind true &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment