From 3bb5a880d5d47c38692db4fa8f18193a9e2c9e48 Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 27 Oct 2021 13:56:55 +0200 Subject: [PATCH] moved stdtime from filefct.sh to utils.sh --- lib/filefct.sh | 9 --------- lib/utils.sh | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/filefct.sh b/lib/filefct.sh index a5c89b6..e58994e 100644 --- a/lib/filefct.sh +++ b/lib/filefct.sh @@ -9,15 +9,6 @@ # ------------------------------------------------------------------------------ -# ------------------------------------------------------------------------------ -# Define normalised time display, filename friendly -stdtime() -{ - date --rfc-3339=seconds | sed -e 's/ /-/' -e 's/://g' -} -export -f stdtime - - # ------------------------------------------------------------------------------ # Backup original installation files # (or any old files if runned several time on same file) diff --git a/lib/utils.sh b/lib/utils.sh index 125652a..de1f4a4 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -9,6 +9,15 @@ # ------------------------------------------------------------------------------ +# ------------------------------------------------------------------------------ +# Define normalised time display, filename friendly +stdtime() +{ + date --rfc-3339=seconds | sed -e 's/ /-/' -e 's/://g' +} +export -f stdtime + + # ------------------------------------------------------------------------------ # Check if a function exists, return 0 if so function_exists() {