X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Frefred.sh;fp=scripts%2Fcustomize%2Ffred%2Frefred.sh;h=2f00854a2c675b44ff9738dd50460cae6de3571b;hp=908e3bd5494be376a71abf16bc32e2007f146c4d;hb=2b8c3b9f11123159c7e0c20b550c7bfefd796317;hpb=afff950f497547f99b9df6287c6227868b5cfa3f diff --git a/scripts/customize/fred/refred.sh b/scripts/customize/fred/refred.sh index 908e3bd5..2f00854a 100644 --- a/scripts/customize/fred/refred.sh +++ b/scripts/customize/fred/refred.sh @@ -15,8 +15,14 @@ function refred() done #echo arch addin now is: $arch_addin + # special case that makes our software hierarchy folder, if it doesn't exist. + # everything else is only re-permed if it exists. + if [ ! -d "$DEFAULT_FEISTYMEOW_ORG_DIR" ]; then + sudo mkdir "$DEFAULT_FEISTYMEOW_ORG_DIR" + fi + # iterate across the list of dirs we want fred to own and change their ownership. - for dirname in /home/fred /usr/local/fred /home/games $arch_addin; do + for dirname in /home/fred $DEFAULT_FEISTYMEOW_ORG_DIR /usr/local/fred /home/games $arch_addin; do if [ -d "$dirname" ]; then echo "refred on '$dirname'" sudo chown -R fred:fred $dirname