Skip to content

Instantly share code, notes, and snippets.

@cdzombak
Last active February 11, 2021 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdzombak/928123c025b8b4b297e04dbcbd5c7908 to your computer and use it in GitHub Desktop.
Save cdzombak/928123c025b8b4b297e04dbcbd5c7908 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -u
WHITE='\033[0;37m'
RED='\033[0;31m'
YELLOW='\033[0;33m'
GREEN='\033[0;32m'
NC='\033[0m'
if [ -e "/Volumes/Chris Dzombak's iPhone 11 co.brushedtype.doppler-ios" ] ; then
if [ -d "$HOME/Music/160Kbps" ]; then
rsync -vrkLh --progress --size-only --delete --exclude ".doppler" --exclude ".DS_Store" "/Users/cdzombak/Music/160Kbps/" "/Volumes/Chris Dzombak's iPhone 11 co.brushedtype.doppler-ios/Documents"
fi
else
echo -e "${RED}[!] Doppler on iPhone does not appear to be mounted..${NC}"
echo " Perhaps iExplorer is not running, or the iPhone's name has changed?"
exit 1
fi
umount "/Volumes/Chris Dzombak's iPhone 11 co.brushedtype.doppler-ios"
echo ""
echo -e "${GREEN}✔ Complete!${NC}"
sleep 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment