Last active
February 11, 2021 21:12
-
-
Save cdzombak/928123c025b8b4b297e04dbcbd5c7908 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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