From: Alexander Schmidt Date: Mon, 20 Jul 2015 21:45:35 +0000 (+0200) Subject: store upperme once in variable X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/commitdiff_plain/6b669353824a74a935077f40dd70662597d8922d store upperme once in variable --- 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 {