644aa76ab89c5c6ee25f285406e155bec7ff9673
[feisty_meow.git] / customizing / fred / refred.sh
1 #!/bin/bash
2
3 # cleans up the ownership for all my files.
4 function refred()
5 {
6   sudo chown -R fred:fred /home/fred /home/games /home/archives
7   sudo bash $FEISTY_MEOW_SCRIPTS/files/normal_perm.sh /var/log
8 }
9
10 # this block should execute when the script is actually run, rather
11 # than when it's just being sourced.
12 if [[ $0 =~ .*refred\.sh.* ]]; then
13   THISDIR="$( \cd "$(\dirname "$0")" && \pwd )"
14   export LIGHTWEIGHT_INIT=true
15   source "$THISDIR/../../scripts/core/launch_feisty_meow.sh"
16   refred
17 fi
18