moved stdtime from filefct.sh to utils.sh
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user