improved spacem method to handle unwritable names better (where perl was not happy...
[feisty_meow.git] / customizing / fred / refred.sh
index 725799235669538f521b368a9e40fd40dd878e19..06faf84751ed43cc4cc3d22db96eeea656a1788b 100644 (file)
@@ -3,14 +3,14 @@
 # cleans up the ownership for all my files.
 function refred()
 {
-  chown -R fred:fred /home/fred /home/games /home/archives
-  bash $FEISTY_MEOW_SCRIPTS/files/normal_perm.sh /var/log
+  sudo chown -R fred:fred /home/fred /home/games /home/archives
+  sudo bash $FEISTY_MEOW_SCRIPTS/files/normal_perm.sh /var/log
 }
 
 # this block should execute when the script is actually run, rather
 # than when it's just being sourced.
 if [[ $0 =~ .*refred\.sh.* ]]; then
-  THISDIR="$( \cd "$(\dirname "$0")" && \pwd )"
+  THISDIR="$( \cd "$(\dirname "$0")" && /bin/pwd )"
   export LIGHTWEIGHT_INIT=true
   source "$THISDIR/../../scripts/core/launch_feisty_meow.sh"
   refred