From: Chris Koeritz Date: Fri, 18 May 2018 13:56:14 +0000 (-0400) Subject: nice mod to use username for customization X-Git-Tag: 2.140.112^2~38 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=bb9a6f18f4f5c044eb154efb6c03092ba4fcf8d8 nice mod to use username for customization instead of assuming everybody loves the fred customization set, this now defaults to the user name as the customization package. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index db6d9909..efc7df54 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -467,15 +467,15 @@ if [ -z "$skip_all" ]; then local custom_user="$1"; shift if [ -z "$custom_user" ]; then # use our default example user if there was no name provided. - custom_user=fred + custom_user=$(logname) fi save_terminal_title if [ ! -d "$FEISTY_MEOW_SCRIPTS/customize/$custom_user" ]; then - echo "The customization folder provided for $custom_user should be:" - echo " '$FEISTY_MEOW_SCRIPTS/customize/$custom_user'" - echo "but that folder does not exist. Skipping customization." + echo "The customization folder for '$custom_user' would be:" + echo " $FEISTY_MEOW_SCRIPTS/customize/$custom_user" + echo "but that folder does not exist. Skipping recustomization." return 1 fi