Last active
October 19, 2018 16:54
-
-
Save graham/140e364347bf33b2e9e7108d0101454a to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
NEWLOCATION="OldDesktop_`date +%Y-%m-%d-%s`" | |
mkdir ~/Dropbox/Desktop | |
mv ~/Desktop/ $NEWLOCATION | |
ln -s ~/Dropbox/Desktop Desktop | |
echo "You can now move the contents of $NEWLOCATION to your Desktop and delete the $NEWLOCATION folder." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment