]> git.treefish.org Git - backmeupscotty.git/commitdiff
store upperme once in variable
authorAlexander Schmidt <alex@treefish.org>
Mon, 20 Jul 2015 21:45:35 +0000 (23:45 +0200)
committerAlexander Schmidt <alex@treefish.org>
Mon, 20 Jul 2015 21:45:35 +0000 (23:45 +0200)
backmeupscotty

index 1d092663a3781e67a5c27ef782f0b2fb4f483ae2..ad2fa6582ec1303bef176c47eaab0335ee03da67 100644 (file)
@@ -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 {