From 6b669353824a74a935077f40dd70662597d8922d Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 20 Jul 2015 23:45:35 +0200 Subject: [PATCH] store upperme once in variable --- backmeupscotty | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/backmeupscotty b/backmeupscotty index 1d09266..ad2fa65 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -6,16 +6,14 @@ ARCHIVE_KEEPNBACKUPS=30 ARCHIVE_KEEPNDAYS=30 BACKUP_RUNEVERYNTHDAY=1 -function upperme { - echo $(basename $0) | tr '[:lower:]' '[:upper:]' -} +_UPPERME=$(echo $(basename $0) | tr '[:lower:]' '[:upper:]') function scottyinfo { - echo $(upperme): $@ + echo $_UPPERME: $@ } function scottyerror { - echo $(upperme): $@ >&2 + echo $_UPPERME: $@ >&2 } function ssh255 { -- 2.39.5