aboutsummaryrefslogtreecommitdiffstats
path: root/create_arm_image.sh
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2020-08-15 23:06:26 +0200
committerJybz <j.biernacki@free.fr>2020-08-15 23:06:26 +0200
commiteb89e0a51ae1ccbbfbe043e955dcc74d05617574 (patch)
tree2d8353afcd5e2c1826bf9792853a15192ba37f3e /create_arm_image.sh
parent01c62d71013f3ef988806cd17ba5f47104625dd9 (diff)
downloadmageia4arm-eb89e0a51ae1ccbbfbe043e955dcc74d05617574.tar
mageia4arm-eb89e0a51ae1ccbbfbe043e955dcc74d05617574.tar.gz
mageia4arm-eb89e0a51ae1ccbbfbe043e955dcc74d05617574.tar.bz2
mageia4arm-eb89e0a51ae1ccbbfbe043e955dcc74d05617574.tar.xz
mageia4arm-eb89e0a51ae1ccbbfbe043e955dcc74d05617574.zip
add timestamp
Diffstat (limited to 'create_arm_image.sh')
-rwxr-xr-xcreate_arm_image.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/create_arm_image.sh b/create_arm_image.sh
index 4ba02c7..0e037f8 100755
--- a/create_arm_image.sh
+++ b/create_arm_image.sh
@@ -20,24 +20,29 @@
#Change the local to the most global
export LC_ALL=C
+function timestamp() {
+ date "+[%H:%M:%S]"
+}
+
+
function WaitToContinue() {
read -p "Break... Press [ENTER] to continue." GARBAGE
}
function title() {
- echo -e "\e[1;32m${1}\e[0m"
+ echo -e "\e[1;32m$(timestamp) ${1}\e[0m"
}
function info() {
- echo -e "\e[36m${1}\e[0m"
+ echo -e "\e[36m$(timestamp) ${1}\e[0m"
}
function warning() {
- echo -e "\e[1;35m${1}\e[0m"
+ echo -e "\e[1;35m$(timestamp) ${1}\e[0m"
}
function error() {
- echo -e "\e[1;31m${1}\e[0m"
+ echo -e "\e[1;31m$(timestamp) ${1}\e[0m"
}
function help() {