Created
March 19, 2015 14:15
-
-
Save DeeNewcum/b12f309423c40ddc79b8 to your computer and use it in GitHub Desktop.
Script for locking / unlocking Terraria
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/sh | |
# Temporarily disables Terraria, so that I can't play it during work hours. | |
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Images/' | |
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Fonts/' | |
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Sounds/' | |
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/' | |
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/' | |
chmod -x '/home/dee/.wine/drive_c/Program Files/Steam/' |
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/sh | |
# Re-enables Terraria | |
cat <<EOF | |
================================================================================ | |
DO NOT unlock Terraria during work hours. | |
Now pause for 5 seconds to think whether this is a good idea. | |
Ctrl-C to abort. | |
================================================================================ | |
EOF | |
sleep 5 | |
chmod +x '/home/dee/.wine/drive_c/Program Files/Steam/' | |
chmod +x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/' | |
chmod +x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/' | |
chmod +x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Images/' | |
chmod +x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Fonts/' | |
chmod +x '/home/dee/.wine/drive_c/Program Files/Steam/steamapps/common/Terraria/Content/Sounds/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment