1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
qTox/OSX-Migrater.sh

15 lines
541 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# A qTox profile migrater for OSX
echo "Figuring out if action is required ..."
if [ -d ~/Library/Prefrences/tox]
echo "Moving profile(s) ..."
cp -r ~/Library/Preferences/tox ~/Library/Application\ Support/
mv ~/Library/Application\ Support/tox/ ~/Library/Application\ Support/Tox
mv ~/Library/Preferences/tox ~/.Tox-Backup
echo "Done! You profile(s) have been moved! A back up coppy still exists at:"
echo "~/.Tox-Backup"
else
echo "Cannot locate old profile directory, profile migration not performed"
fi
exit 0