From: Chris Koeritz Date: Wed, 8 Feb 2017 02:23:40 +0000 (-0500) Subject: magic alias fix X-Git-Tag: 2.140.90~207 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=3301679c5fb3454cfe75590bd49b0ea7589c5ccd;p=feisty_meow.git magic alias fix needed to have aliases available in non-interactive commands and this does that up. this may fix our issues with cron also; need to try it out. --- diff --git a/scripts/core/launch_feisty_meow.sh b/scripts/core/launch_feisty_meow.sh index b5a7b2f0..9e818341 100644 --- a/scripts/core/launch_feisty_meow.sh +++ b/scripts/core/launch_feisty_meow.sh @@ -18,6 +18,11 @@ ############## +# some preconditions we want to establish before loading anything... + +# make sure that aliases can be used in non-interactive shells. +shopt -s expand_aliases + # patch the user variable if we were launched by one of our cron jobs. if [ -z "$USER" -a ! -z "$CRONUSER" ]; then export USER="$CRONUSER" @@ -68,8 +73,7 @@ source "$FEISTY_MEOW_SCRIPTS/core/variables.sh" # include helpful functions. we do this every time rather than making it part # of variable initialization, because functions cannot be exported to -# sub-shells in bash (much like aliases cannot, to our infinite chagrin after -# having migrated from korn shell...). +# sub-shells in bash. source "$FEISTY_MEOW_SCRIPTS/core/functions.sh" # load some helper methods for the terminal which we'll use below. diff --git a/scripts/customize/fred/scripts/gamesaver.sh b/scripts/customize/fred/scripts/gamesaver.sh index 1e5ea9ca..ce9cdb76 100644 --- a/scripts/customize/fred/scripts/gamesaver.sh +++ b/scripts/customize/fred/scripts/gamesaver.sh @@ -5,6 +5,8 @@ source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +#we are missing the netcp thing. why???? + WINE_SOURCE_DIR="$HOME/wine_goods/My Games" SPOOLING_OUTPUT_DIR="$HOME/spooling_saves" @@ -25,7 +27,8 @@ function copyem() if [ -d "$source_dir" ]; then echo $game_name - cp -v -n "$source_dir"/* "$out_dir"/ +#old cp -v -n "$source_dir"/* "$out_dir"/ + netcp "$source_dir"/* "$out_dir"/ sep 28 fi }