# first build a list of dirs based on their location in /home/archives.
local arch_builder="archons basement codebarn games imaginations musix pooling prewar_toaster stuffing toaster walrus"
# first build a list of dirs based on their location in /home/archives.
local arch_builder="archons basement codebarn games imaginations musix pooling prewar_toaster stuffing toaster walrus"
# everything else is only re-permed if it exists.
if [ ! -d "$DEFAULT_FEISTYMEOW_ORG_DIR" ]; then
sudo mkdir "$DEFAULT_FEISTYMEOW_ORG_DIR"
# everything else is only re-permed if it exists.
if [ ! -d "$DEFAULT_FEISTYMEOW_ORG_DIR" ]; then
sudo mkdir "$DEFAULT_FEISTYMEOW_ORG_DIR"
if [ -d "$dirname" ]; then
echo "revising ownership on '$dirname'"
sudo chown -R ${cooluser}:${cooluser} "$dirname"
if [ -d "$dirname" ]; then
echo "revising ownership on '$dirname'"
sudo chown -R ${cooluser}:${cooluser} "$dirname"
- test_or_die "chmodding /z/ for ${cooluser}"
- sudo chown ${cooluser}:${cooluser} /z/stuffing
- test_or_die "chowning /z/stuffing for ${cooluser}"
+ exit_on_error "chmodding /z/ for ${cooluser}"
+ sudo chown ${cooluser}:${cooluser} /z/stuffing/
+ exit_on_error "chowning /z/stuffing for ${cooluser}"
- sudo chown ${cooluser}:${cooluser} archives
- test_or_die "chowning /z/stuffing/archives for ${cooluser}"
+ sudo chown ${cooluser}:${cooluser} archives/
+ exit_on_error "chowning /z/stuffing/archives for ${cooluser}"
}
# this block should execute when the script is actually run, rather
# than when it's just being sourced.
# this runs the cool permission applier on the current user.
}
# this block should execute when the script is actually run, rather
# than when it's just being sourced.
# this runs the cool permission applier on the current user.
- test_or_die "sourcing the feisty meow launcher"
- reapply_cool_permissions $(logname)
- test_or_die "reapplying cool permissions on $(logname)"
+ exit_on_error "sourcing the feisty meow launcher"
+ coolio="$USER"
+ reapply_cool_permissions "$coolio"
+ exit_on_error "reapplying cool permissions on $coolio"